Help for this page

Select Code to Download


  1. or download this
    foreach ( @sorted ) {
        my $tar = Archive::Tar->new($_);
    ...
    
        chdir "../..";  # return to original cwd
    }
    
  2. or download this
        for my $file ( $tar->get_files ) {
            my $dataref = $file->get_content_by_ref;
    ...
            # You can use $file->name to see the tarred path and
            # make subdirs as you see fit.
        }