sub FU { return { qw[ a b c d ] }->{$_[0]}; } die FU('a'); __END__ b at - line 5.
update:
Oh yeah, I almost forgot, you don't have an array, you have a list.
|
MJD says you can't just make shit up and expect the computer to know what you mean, retardo! ** The Third rule of perl club is a statement of fact: pod is sexy. |
In reply to Re: Coercing an array into a hash
by PodMaster
in thread Coercing an array into a hash
by grinder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |