jonnyfolk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use CGI ':standard'; use Archive::Tar; my $file = "/home/mm/IpToCountry.csv.gz"; my $end_file = "/home/mm/IpToCountry.csv"; print header(); my $tar = Archive::Tar->new; my $tar_errors = $tar->error(); $tar->read($file,1); $tar->extract($file, $end_file); print p("Tar errors ($tar_errors)");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extracting a file from .gz archive
by mwah (Hermit) on May 14, 2008 at 10:28 UTC | |
by jonnyfolk (Vicar) on May 14, 2008 at 12:55 UTC | |
|
Re: Extracting a file from .gz archive
by marto (Cardinal) on May 14, 2008 at 10:08 UTC | |
by Bloodnok (Vicar) on May 14, 2008 at 11:17 UTC | |
|
Re: Extracting a file from .gz archive
by Bloodnok (Vicar) on May 14, 2008 at 10:11 UTC |