{ return }
}
- foreach (@files)
- { doUpDown($our_sub, $warn_sub, $_) }
+ unless ($ENV{PERL_CORE}) {
+ foreach (@files)
+ { doUpDown($our_sub, $warn_sub, $_) }
+ }
warn "Up/Downgrade complete.\n" ;
exit 0 if $upgrade || $downgrade;
use IO::Handle ;
use strict ;
-local ($^W) = 1; #use warnings ;
-use vars qw($VERSION @ISA @EXPORT $AUTOLOAD);
-use vars qw($deflateDefault $deflateParamsDefault $inflateDefault);
+use warnings ;
+our ($VERSION, @ISA, @EXPORT, $AUTOLOAD);
+our ($deflateDefault, $deflateParamsDefault, $inflateDefault);
$VERSION = "1.34_01" ;
sub deflateInit(@)
{
my ($got) = ParseParameters($deflateDefault, @_) ;
- local ($^W) = 0; #no warnings;
+ no warnings;
croak "deflateInit: Bufsize must be >= 1, you specified $got->{Bufsize}"
unless $got->{Bufsize} >= 1;
_deflateInit($got->{Level}, $got->{Method}, $got->{WindowBits},
sub inflateInit(@)
{
my ($got) = ParseParameters($inflateDefault, @_) ;
- local ($^W) = 0; #no warnings;
+ no warnings;
croak "inflateInit: Bufsize must be >= 1, you specified $got->{Bufsize}"
unless $got->{Bufsize} >= 1;
_inflateInit($got->{WindowBits}, $got->{Bufsize}, $got->{Dictionary});
my ($got) = ParseParameters($deflateParamsDefault, @_) ;
croak "deflateParams needs Level and/or Strategy"
unless defined $got->{Level} || defined $got->{Strategy};
- local ($^W) = 0; #no warnings;
+ no warnings;
croak "deflateParams: Bufsize must be >= 1, you specified $got->{Bufsize}"
unless !defined $got->{Bufsize} || $got->{Bufsize} >= 1;