Think about Loose Coupling | |
PerlMonks |
Re: Require input reading files recursively in perlby CountOrlok (Friar) |
on Apr 17, 2013 at 13:22 UTC ( [id://1029146]=note: print w/replies, xml ) | Need Help?? |
General disclaimer: use strict/warnings.
Using a global filehandle (or in general any global variable that can be modified) with recursion is a *bad* idea. Instead use lexcials:
Don't forget to closedir when done.
In Section
Seekers of Perl Wisdom
|
|