You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
229 B
Perl
8 lines
229 B
Perl
5 years ago
|
#!/usr/local/bin/perl
|
||
|
%inventory = (A=>45_000.00,b=>120.00,C=>450_000.00,d=>40.00);
|
||
|
|
||
|
open (INV, ">price.list");
|
||
|
foreach $item (sort keys %inventory){
|
||
|
print INV join(":", ($item, $inventory{"$item"})), "\n";
|
||
|
}
|
||
|
close INV;
|