use strict; my %flags; $flags{"1"} = "french"; $flags{"2"} = "german"; # The hash index can be any string, not just numeric $flags{"dutch"} = "Dutch"; # You can print a hash element by accessing it directly print "Single flag: " , $flags{2} , "\n"; # Or you can loop through the hash. Note that the order # the keys are listed in the has is not specified foreach my $key (keys %flags) { print $flags{$key} . "\n"; }
In reply to Re: Pushing Filename parts into an array
by roik
in thread Pushing Filename parts into an array
by meetn2veg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |