in reply to Re: Need to parse a file within a zip fille
in thread Need to parse a file within a zip fille
now i know it sees the files within the zip i just need to open that particular file up and load every line in an array.use warnings; use Archive::Zip; my $zip = Archive::Zip->new('test.zip'); # my $fh = $zip->memberNamed( { $zip => 'test1.txt'} ); my @members = $zip->memberNames(); # foreach my $member (@members) { # print $member."\n"; # } open OUT,">kiop_data.txt" or die "Cant open kiop_data.txt : $! \n "; open my $file,"<$fh" or die "cant open \'$fh\' : $! \n"; my $lines = @$file[196609]; # print $Lines[196609]."\n"; close IN; close OUT;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Need to parse a file within a zip fille
by edimusrex (Monk) on Apr 23, 2015 at 20:58 UTC |