There's more than one way to do things | |
PerlMonks |
Re^3: File::find hackby oko1 (Deacon) |
on Feb 25, 2012 at 14:04 UTC ( [id://956115]=note: print w/replies, xml ) | Need Help?? |
I just don't like using last. As well you shouldn't, at least in this case. 'last' is not a correct way of exiting a subroutine, and Perl should actually throw a warning if you run your code. The correct way of coming back from a sub is 'return', not 'last'. -- I hate storms, but calms undermine my spirits. -- Bernard Moitessier, "The Long Way"
In Section
Seekers of Perl Wisdom
|
|