E
Ej
This does not work, Why?
@fla=('/root/name/dir1','/root/name/dir2');
foreach $ia (@fla){
print "adding $ia<br>";
$status=$zip->addTree( "$ia","$ia" );
$status->desiredCompressionMethod( COMPRESSION_DEFLATED );
$status->desiredCompressionLevel(5);
}
I get this message:
Can't call method "desiredCompressionMethod" without a package or object
reference at zp1.pl line 38.
however, this does work,
foreach $ia (@fla){
print "adding $ia<br>";
$status=$zip->addTree( "$ia","$ia" );
}
how can I fix the first code?
Thank You.
@fla=('/root/name/dir1','/root/name/dir2');
foreach $ia (@fla){
print "adding $ia<br>";
$status=$zip->addTree( "$ia","$ia" );
$status->desiredCompressionMethod( COMPRESSION_DEFLATED );
$status->desiredCompressionLevel(5);
}
I get this message:
Can't call method "desiredCompressionMethod" without a package or object
reference at zp1.pl line 38.
however, this does work,
foreach $ia (@fla){
print "adding $ia<br>";
$status=$zip->addTree( "$ia","$ia" );
}
how can I fix the first code?
Thank You.