Perl.Org wrote:
I'm not sure what the difference between strict and warning is (I
have always used strict and resolved any "warnings" that can
generate).
Strictures normally triggers fatal errors that make your program stop,
rather than warnings. Warnings are just printed to STDERR. After all,
they
Perl.Org wrote:
Gunnar Hjalmarsson wrote:
If you have made your scripts pass $^W (or the -w switch) without
generating warnings, you obviously don't need the flexibility
that "use warnings;" may offer, so there is really no need to
replace $^W with "use warnings;" just because Perl is upgraded.
Act
On Sat, 10 Jul 2004 00:59:08 +0200, Gunnar Hjalmarsson wrote
>
> If you have made your scripts pass $^W (or the -w switch) without
> generating warnings, you obviously don't need the flexibility that
> "use warnings;" may offer, so there is really no need to replace $^W
> with "use warnings;" just
Perl.Org wrote:
Also on this subject, is there some easy syntax that will use
warnings if it is supported or set $^W otherwise, so I don't have
to go through all the scripts (the vendor has upgraded their Perl
distro to 5.6 with the current release we haven't migrated to yet)?
If you have made your
Also on this subject, is there some easy syntax that will use warnings if it
is supported or set $^W otherwise, so I don't have to go through all the
scripts (the vendor has upgraded their Perl distro to 5.6 with the current
release we haven't migrated to yet)?
--
To unsubscribe, e-mail: [EMAIL P
Perl.Org wrote:
Gunnar Hjalmarsson wrote
But if you want to ensure that warnings is enabled, the
equivalent of using the -w switch is to give the $^W variable a
true value. Note that unlike "use warnings;", this enables
warnings dynamically, not lexically.
For modules, can I just put this after the
On Tue, 06 Jul 2004 20:18:53 +0200, Gunnar Hjalmarsson wrote
>
> But if you want to ensure that warnings is enabled, the equivalent of
> using the -w switch is to give the $^W variable a true value. Note
> that unlike "use warnings;", this enables warnings dynamically, not
> lexically.
Hi Gunnar,
Perl.Org wrote:
I have to work with this version of Perl:
This is perl, version 5.005_03 built for MSWin32-x86
When I 'use warnings' it says:
Can't locate warnings.pm in @INC
Right, the warnings pragma was introduced with version 5.6.0.
How do I enable warnings in this case? I think there is a -w