or:H:\>perl -Mstrict -w (1==1) or dir "hello"; String found where operator expected at - line 1, near "dir "hello"" (Do you need to predeclare dir?) ^Z syntax error at - line 1, near "dir "hello"" Execution of - aborted due to compilation errors.
H:\>perl -Mstrict -w (1==0) or dir "hello"; String found where operator expected at - line 1, near "dir "hello"" (Do you need to predeclare dir?) ^Z syntax error at - line 1, near "dir "hello"" Execution of - aborted due to compilation errors.
Is it possible that this code you posted comes from a module or the like where strict is not loaded?
(Btw: I tried it with Win2k and ActivestatePerl 631)
Best regards,
perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"
In reply to Re: Invalid sub ignored on use strict;
by strat
in thread Invalid sub ignored on use strict;
by wil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |