wstarrs has asked for the wisdom of the Perl Monks concerning the following question:
I know that my syntax is wrong, what I am trying to do is retrieve two keys (file names) and assign two values from each to a variable that changes name every time the loop runs. What is the correct syntax for this type of operation? Or any suggestions on a better way to do this? Thanks, Billfor ($i=0; $i<2; $i++) { $graphic.$i = $pers_dcr_files{$key[$i]}{GraphicName}; $url.$i = $pers_dcr_files($key[$i]}{url}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to I retrieve a specific key/value from a hash?
by Masem (Monsignor) on May 15, 2001 at 19:56 UTC | |
by no_slogan (Deacon) on May 15, 2001 at 21:34 UTC | |
|
Re: How to I retrieve a specific key/value from a hash?
by aijin (Monk) on May 15, 2001 at 22:23 UTC |