You declared $dir using 'foreach my $dir (@dir) {', which limits the declaration to inside that foreach loop, then you attempted to pass it to find(), which is outside the loop.
In reply to Re: copy files
by jasonk
in thread Global symbol $dir requires a explicit package name ?
by skyler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |