Todd
how do you turn off the warning ?

stanley
> 
> i use solaris and ihave no root right.the version of perl5.005_03
> 
> in a simple script if i try to add "use warnings",it will say Can't locate
> warnings in @inc(@inc......)
> 
> instead if i use perl -w my.pl,it will give me the warning information. so
> how can i modify my configuration or what modules should i download?
> 
> thanks
> 

You would have to upgrade perl to use the use warnings; pragma. Untill I 
get perl6, I just use the -w switch on the shebang line and fiddle with the 
corresponding global variables to turn warnings on and off (Actually, I 
think Ive only ever written one piece of code where id DID turn warnings 
off). Anyways, it does the same thing.

Instead of putting the -w switch on the command line when you run the 
program, put it on the shebang:

#!/path/to/perl -w

No matter how you execute the program, warnings will always get turned on.

Todd W.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos, & more
faith.yahoo.com

Reply via email to