Just another Perl shrine | |
PerlMonks |
Re: Not understanding the arrow operatorby John M. Dlugosz (Monsignor) |
on May 18, 2009 at 19:59 UTC ( [id://764716]=note: print w/replies, xml ) | Need Help?? |
Update: Sorry, I addressed the wrong point. I thought I read "fat arrow". But my note on not needing the quotes still holds. The fat arrow is the same as comma. It has the side effect of letting you not quote the left side. So should be exactly the same as as the hash constructor syntax (putting stuff between braces) just wants a list with an even number of elements, taken as alternating keys and values. That's why it works for parameter lists too. You could actually write and be even less noisy. —John
In Section
Seekers of Perl Wisdom
|
|