in reply to Invalid sub ignored on use strict;
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"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Invalid sub ignored on use strict;
by derby (Abbot) on Apr 30, 2002 at 11:46 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |