|
|
| Just another Perl shrine | |
| PerlMonks |
Re^3: File existence check failureby Athanasius (Vicar) |
| on Nov 11, 2012 at 04:11 UTC ( #1003297=note: print w/ replies, xml ) | Need Help?? |
|
Critiques ?? As a general rule, avoid subroutine prototypes unless you have good reason for them. (See, e.g., Far More than Everything You've Ever Wanted to Know about Prototypes in Perl -- by Tom Christiansen.) With the prototype removed, and employing some Perl idioms, sub fexist can be simplified to:
Improvements ?? Since the aim is to cleanup unwanted files, perhaps it would be better to integrate sub fexist with the cleanup code? Something like this:
Hope that helps, Athanasius <°(((>< contra mundum
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||