First and foremost, => is not an assignment operator. It is an alias for "," that has a special trait in which it will quote a bareword string on the left-hand side. So your first line is more like this:
print 'nono', 1;
And when print is given a list, it prints all the elements packed together with no gaps inbetween. Which is why you saw "nono1" as output from that.
You are hereby remanded to read the Perl Operators manpage.
--rjray
In reply to Re: strict subs and bareword exceptions
by rjray
in thread strict subs and bareword exceptions
by little
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |