in reply to Use Hash? Array? Still confused after all these years.
my %lookup = ( "Alabama" => "southern.txt", "Alaska" => "northern.txt", .... ); my $file = $lookup{$input_state};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use Hash? Array? Still confused after all these years.
by TGI (Parson) on Jul 21, 2005 at 19:41 UTC | |
|
Re^2: Use Hash? Array? Still confused after all these years.
by hmbscully (Scribe) on Jul 26, 2005 at 20:57 UTC |