yes you are right, and I noticed it too. It's annoying, especially when teaching Perl.
The reason is - like so often with Perl - legacy.
There are also other cases like bareword filehandles.
I suppose some docs have already been written in Perl4 times.
IMHO perldsc and some other perldocs need to be proofread and updated.
I'm glad that perlintro is pretty clean, though.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Why Perl Docs examples do not use strict and warnings often
by LanX
in thread Why Perl Docs examples do not use strict and warnings often
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |