in reply to Require input reading files recursively in perl
How about you add these lines to your code and let Perl tell you what's wrong:
use strict; use warnings;
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.
|Replies are listed 'Best First'.|
Re^2: Require input reading files recursively in perl
by educated_foo (Vicar) on Apr 17, 2013 at 14:06 UTC