Help for this page

Select Code to Download


  1. or download this
    use Archive::Tar;
    my @properties = "name, size, mtime";
    my ($location) = "/vol/archive5/test5.tar";
    my %files = Archive::Tar->list_archive($location,,[\@properties]);
    print Dumper \%files;
    
  2. or download this
    use Archive::Tar;
    my ($location) = "/vol/archive5/test5.tar";
    ...
       my $size = $files{$file}{'size'};
       print "$size\n";
    }
    
  3. or download this
    use Archive::Tar;
    my ($location) = "/vol/archive5/test5.tar";
    ...
       my $size = @{ $files{$file}{'size'} };
       print "$size\n";
    }