in reply to How to I retrieve a specific key/value from a hash?
Thus, you can go about it like this:
my (%graphic, %url); for ($i=0; $i<2; $i++) { $graphic{$i} = $foo; $url{$i} = $bar; }
Then when you wish to print, say, the second graphic, you would use:
print $graphic{2};
Hope this was of some help to you.
|
|---|