X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=warnings.pl;h=eff8d60f95be0b83bfc5d82a8ef26f8484f63bc5;hb=dc6d0c4f0dc8290035f9541d4ee259b8bfea7456;hp=586e5a77306167d15dc614ff562dd0a996c34adb;hpb=0111df86b68202837d8ca044a27bbc00d7895fb1;p=p5sagit%2Fp5-mst-13.2.git diff --git a/warnings.pl b/warnings.pl index 586e5a7..eff8d60 100644 --- a/warnings.pl +++ b/warnings.pl @@ -1,7 +1,6 @@ #!/usr/bin/perl - -$VERSION = '1.00'; +$VERSION = '1.01'; BEGIN { push @INC, './lib'; @@ -63,6 +62,8 @@ my $tree = { 'pack' => [ 5.008, DEFAULT_OFF], 'unpack' => [ 5.008, DEFAULT_OFF], 'threads' => [ 5.008, DEFAULT_OFF], + 'assertions' => [ 5.009, DEFAULT_OFF], + #'default' => [ 5.008, DEFAULT_ON ], }], } ; @@ -474,7 +475,7 @@ __END__ package warnings; -our $VERSION = '1.00'; +our $VERSION = '1.02'; =head1 NAME @@ -507,6 +508,10 @@ warnings - Perl pragma to control optional warnings =head1 DESCRIPTION +The C pragma is a replacement for the command line flag C<-w>, +but the pragma is limited to the enclosing block, while the flag is global. +See L for more information. + If no import list is supplied, all possible warnings are either enabled or disabled. @@ -604,7 +609,7 @@ $All = "" ; vec($All, $Offsets{'all'}, 2) = 3 ; sub Croaker { delete $Carp::CarpInternal{'warnings'}; - croak @_ ; + croak(@_); } sub bits