I'm assuming line 47 is find(\&process_file, $dir); which has a reference to $dir but is just past the foreach loop. The $dir declared in foreach my $dir ... goes out of scope at the end of the foreach loop. It is no longer in scope at line 47.
--- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';
In reply to Re: copy files
by pfaut
in thread Global symbol $dir requires a explicit package name ?
by skyler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |