You don't check whether $archivedir exists and you can chdir into it. Use autodie or manually check for success:
chdir $archivedir or die "Couldn't chdir into '$archivedir': $!";
In reply to Re: perl, cpio, and pipe
by Corion
in thread perl, cpio, and pipe
by momo33
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |