in reply to Hash from package
within the hash on the left-hand-sideThose are called keys
updated: straightened out the syntaxmy %hash = qw(Engine 1800cc Doors 4 Color blue); for my $key (keys %hash){ print "$key -> $hash{$key}\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash from package
by Yoda_Oz (Sexton) on Jan 04, 2007 at 09:32 UTC | |
by wfsp (Abbot) on Jan 04, 2007 at 09:45 UTC | |
by Yoda_Oz (Sexton) on Jan 04, 2007 at 10:13 UTC |