Hi All,
I am running my perl in Solaris.I could able to make zip file successfully using Archive::Zip.
But the problem is I am not able to unzip it using command unzip . I am getting the below error
"CheckDir error : Cannnot create unable to process /root/raja/plpgm/a.txt
But I moved the same zip file to Windows OS and it unzipped successfully.
Please help me..
Below is my code .
#!/usr/bin/perl use Archive::Zip qw( :ERROR_CODES :CONSTANTS ); my $zip = Archive::Zip->new(); $EMPFILE = "/root/raja/plpgm/a.txt"; $zip->addFile( $EMPFILE ) or warn "Error adding file $memberName\n"; if ($zip->writeToFileNamed('/root/raja/dummy.zip') != AZ_OK) { # writ +e to disk print "Error in archive creation!"; } else { print "Archive created successfully!"; }
Thanks
Suriya
20071014 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
In reply to PERL : unzip issue by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |