%Modules = (
'Archive::Tar' => {
- 'DISTRIBUTION' => 'BINGOS/Archive-Tar-2.36.tar.gz',
+ 'DISTRIBUTION' => 'BINGOS/Archive-Tar-2.38.tar.gz',
'FILES' => q[cpan/Archive-Tar],
'BUGS' => 'bug-archive-tar@rt.cpan.org',
'EXCLUDED' => [
#!/usr/bin/perl
use strict;
+use warnings;
BEGIN { pop @INC if $INC[-1] eq '.' }
use File::Find;
BEGIN { pop @INC if $INC[-1] eq '.' }
use strict;
+use warnings;
use Archive::Tar;
use Getopt::Std;
$DEBUG = 0;
$WARN = 1;
$FOLLOW_SYMLINK = 0;
-$VERSION = "2.36";
+$VERSION = "2.38";
$CHOWN = 1;
$CHMOD = 1;
$SAME_PERMISSIONS = $> == 0 ? 1 : 0;
### switch between perlio and IO::String
$HAS_IO_STRING = eval {
require IO::String;
- import IO::String;
+ IO::String->import;
1;
} || 0;
}
}
if( $CHOWN && CAN_CHOWN->() and not -l $full ) {
- chown $entry->uid, $entry->gid, $full or
+ CORE::chown( $entry->uid, $entry->gid, $full ) or
$self->_error( qq[Could not set uid/gid on '$full'] );
}
unless ($SAME_PERMISSIONS) {
$mode &= ~(oct(7000) | umask);
}
- chmod $mode, $full or
+ CORE::chmod( $mode, $full ) or
$self->_error( qq[Could not chown '$full' to ] . $entry->mode );
}
use Archive::Tar;
use IO::File;
- my $fh = new IO::File "| compress -c >$filename";
+ my $fh = IO::File->new( "| compress -c >$filename" );
my $tar = Archive::Tar->new();
...
$tar->write($fh);
package Archive::Tar::Constant;
+use strict;
+use warnings;
+
+use vars qw[$VERSION @ISA @EXPORT];
+
BEGIN {
require Exporter;
- $VERSION = '2.36';
+ $VERSION = '2.38';
@ISA = qw[Exporter];
require Time::Local if $^O eq "MacOS";
@EXPORT = Archive::Tar::Constant->_list_consts( __PACKAGE__ );
-use strict;
-use warnings;
-
use constant FILE => 0;
use constant HARDLINK => 1;
use constant SYMLINK => 2;
use File::Spec ();
use File::Basename ();
-### avoid circular use, so only require;
-require Archive::Tar;
use Archive::Tar::Constant;
use vars qw[@ISA $VERSION];
#@ISA = qw[Archive::Tar];
-$VERSION = '2.36';
+$VERSION = '2.38';
### set value to 1 to oct() it during the unpack ###
local $Carp::CarpLevel += 1;
+ ### avoid circular use, so only require;
+ require Archive::Tar;
return Archive::Tar->_extract_file( $self, @_ );
}
use_ok('Archive::Tar') or diag 'Archive::Tar not found -- exit' && die;
-my $tar = new Archive::Tar;
+my $tar = Archive::Tar->new;
isa_ok( $tar, 'Archive::Tar', 'Object created' );
### gzip
} else {
require IO::Zlib;
- $fh = new IO::Zlib;
+ $fh = IO::Zlib->new();
$fh->open( $file, READ_ONLY->(1) )
or warn( "Error opening '$file' with IO::Zlib" ), return
}
File::Spec->splitdir( $File::Find::dir ), $_
) if /\.p(?:l|m|od)$/ }, File::Spec->catdir(qw(.. blib lib) ));
+plan skip_all => "No tests to run" unless scalar @files;
+
plan tests => scalar @files;
for my $file ( @files ) {
pod_file_ok( $file );