Obviously I am a rank beginner but I love the challenge!
I am not doing this for any other reason than to teach myself perl.
Anyway,
I have a zip file that contains various PDF files.
I have tried to read the zip to capture the file names and display them on screen using the following,
open (OUTF, "accnt.zip"
;
@data = <OUTF>;
close (OUTF);
foreach $line (@data)
{
print "------". $line;
}
$count =@data;
print "$count lines in file!\n";
I get...
0 lines in file
I know I should declare that I am trying to read a zip file.
I have read most of CGI 101 & programming Perl but neither make any mention of zip files.
I know I'm a 'dill' but can someone put me out of my misery?
I am not doing this for any other reason than to teach myself perl.
Anyway,
I have a zip file that contains various PDF files.
I have tried to read the zip to capture the file names and display them on screen using the following,
open (OUTF, "accnt.zip"
@data = <OUTF>;
close (OUTF);
foreach $line (@data)
{
print "------". $line;
}
$count =@data;
print "$count lines in file!\n";
I get...
0 lines in file
I know I should declare that I am trying to read a zip file.
I have read most of CGI 101 & programming Perl but neither make any mention of zip files.
I know I'm a 'dill' but can someone put me out of my misery?