in reply to Re: use strict
in thread use strict
if (-W $file) { ... do happy stuff ... }else{ ... do unhappy stuff ... }
Whereas -w is a switch used when running Perl to add a behaviour to the interpreter as it compiles and runs your code. You can see about the file test swicthes by typing:
perldoc -f -X
However, there is a -W switch for Perl 5.6 to turn on all warnings.
Cheers,
KM
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE: Re: use strict
by lhoward (Vicar) on Jun 07, 2000 at 20:07 UTC | |
by KM (Priest) on Jun 07, 2000 at 20:09 UTC |