I have array which stores names given from on screen prompt, then want to print the values for these nameshash: %random_name = ( $bob => "something", etc );
Nothing is printed, if i replace $random_name{$_}; with $random_name{$bob}; it works fine? Thanksforeach (@array) { $value = $random_name{$_}; print "value: $value\n"; };
In reply to calling a hash by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |