P is for Practical | |
PerlMonks |
Re^5: File::Find: Return array of "wanted" filesby Laurent_R (Canon) |
on Oct 04, 2013 at 21:50 UTC ( [id://1056941]=note: print w/replies, xml ) | Need Help?? |
Yes, in such a case, you want to declare the array before entering the loop. That's what choroba is doing in the suggested code, declaring @found right before entering the loop:
In Section
Seekers of Perl Wisdom
|
|