Wow, you caused me to have quite the headslap moment. At first I was thinking, why does the lc get assigned to a new variable? So I played around with it and realized for the first time that $var in this construct is an alias and not a copy. *headslap*
Could you not, at least in this example, use a map? Like, map { print ("Value: " . $hash{lc($_)}); } @valuesIs it uncouth to use map this way?
Edit: Destroyed by better and faster answers!
In reply to Re: How a for() assignment works
by amarquis
in thread How a for() assignment works
by Herkum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |