Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: sub strict refs errors.by cephas (Pilgrim) |
on Oct 03, 2006 at 00:33 UTC ( [id://575984]=note: print w/replies, xml ) | Need Help?? |
return unless -d $dir; You are checking to see if $dir is a directory, even though you assigned a file to that variable just above it. Presumably HL1.txt is a file, so -d will return false.
In Section
Seekers of Perl Wisdom
|
|