![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: using a subroutineby Jasper (Chaplain) |
on Aug 09, 2004 at 08:36 UTC ( #381165=note: print w/replies, xml ) | Need Help?? |
Your call to remove will only ever remove the files from the last directory you read. @tmps = readdir(DIRS); should probably be push @tmps, readdir(DIRS);. I second everyone else's comments about globals, etc..
In Section
Seekers of Perl Wisdom
|
|