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}; }
In reply to How to I retrieve a specific key/value from a hash? by wstarrs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |