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
> 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 warni
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
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 inf
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 in
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 m
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 module