for my $var (map {lc} @vars) { print "Value: " . $hash_ref->{$var} . "\n" if exists $hash_ref->{$ +var}; }
Update: Looks like jwkrahn beat me to it...
"As you get older three things happen. The first is your memory goes, and I can't remember the other two... " - Sir Norman Wisdom
In reply to Re: How a for() assignment works
by NetWallah
in thread How a for() assignment works
by Herkum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |