Remember to check for any return errors when zipping. Also, you can pass an array reference to zip, so try the following:
for my $ip ( keys %files ) { zip \@{ $files{$ip} } => "$ip.zip" or die "zip failed: $ZipError\n +"; }
In reply to Re^7: needing to zip files in a series that begin with the same IP address
by Kenosis
in thread needing to zip files in a series that begin with the same IP address
by diamondsandperls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |