for my $src (@files) { my $status = zip $src => "${src}.zip" or die "zip failed: $ZipError\n"; } # And, if you're confident unlink @files;
You cannot just arbitrarily throw arrays into subroutines which explicitly require scalar arguments and expect it to work.
🦛
In reply to Re^3: Compressing files on an entire disk
by hippo
in thread Compressing files on an entire disk
by justin423
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |