I've tried to get into the mysteries of the strict pragma, but it seems that there are some miracelous things happening - at least I do have this impression.
#!usr/bin/perl use strict; # prints 'nono1', so '=>' seems to be interpreted as '.' print nono => "1"; # just ok though print nono . "1"; # Error as expected : No comma allowed after filehandle ... print nono, 1;
The docs for strict state that barewords don't raise errors if left of the '=>' operator, but ...
My question is, why is the assignment operator '=>' in the first 'print' statement here interpreted as a dot and not as a comma as I would expect it as this is how it gets interpreted in a hash key=>value assignment?
Sorry if I seem a bit stupid, but I better ask before I tend to remember wrong relations.
Have a nice day
All decision is left to your taste
In reply to strict subs and bareword exceptions by little
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |