We don't bite newbies here... much | |
PerlMonks |
Re^2: Use of the => operatorby roju (Friar) |
on Aug 10, 2004 at 15:16 UTC ( [id://381618]=note: print w/replies, xml ) | Need Help?? |
From perlop:
The => digraph is mostly just a synonym for the comma operator. It's useful for documenting arguments that come in pairs. As of release 5.001, it also forces any word to the left of it to be interpreted as a string.
I'd call 01 a word, especially since 01 =~ /^\w+$/ will match. But yup, since perl defines Perl, 01 isn't a word ;)
In Section
Seekers of Perl Wisdom
|
|