RE: use warnings; doesn't work

2002-10-10 Thread Jenda Krynicky
both #!/usr/bin/perl -w and perl -w my.pl will do the warnings work,but use warnings will throw exception. if i setup a file called warnings.pm(it only conatins 1) in my lib and don't use directive or option,there is no warning and exception stanley Put $^W = 1; into your

RE: use warnings; doesn't work

2002-10-10 Thread nkuipers
If you put the -w flag in your shebang line like this #!/usr/bin/perl -w does it still throw an exception or do the warnings work? = Original Message From stanley [EMAIL PROTECTED] = i use solaris and ihave no root right.the version of perl5.005_03 in a simple script if i try to add

Re: use warnings; doesn't work

2002-10-09 Thread Todd Wade
Stanley wrote: 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

RE: use warnings; doesn't work

2002-10-09 Thread stanley
both #!/usr/bin/perl -w and perl -w my.pl will do the warnings work,but use warnings will throw exception. if i setup a file called warnings.pm(it only conatins 1) in my lib and don't use directive or option,there is no warning and exception stanley nkuipers wrote: If you put the -w flag

Re: use warnings; doesn't work

2002-10-09 Thread stanley
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

Re: use warnings; doesn't work

2002-10-09 Thread Michael Fowler
On Wed, Oct 09, 2002 at 07:55:13PM -0700, stanley wrote: #!/usr/bin/perl -w does it still throw an exception or do the warnings work? -w on the shebang or command lines will work with any version of Perl. The use warnings pragma was added in 5.6.0, and this is why you're getting the error.