Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Require input reading files recursively in perlby kcott (Archbishop) |
on Apr 17, 2013 at 13:19 UTC ( [id://1029145]=note: print w/replies, xml ) | Need Help?? |
G'day jesuashok, How about you add these lines to your code and let Perl tell you what's wrong:
strict should tell you about $file in while( defined ($file = readdir SCR) ) which, I believe, is your immediate problem. warnings may pick up something I haven't spotted. Please endeavour to add these two lines to all your scripts. -- Ken
In Section
Seekers of Perl Wisdom
|
|