Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: How to wrap a subroutineby eyepopslikeamosquito (Archbishop) |
on Feb 06, 2015 at 07:00 UTC ( [id://1115738]=note: print w/replies, xml ) | Need Help?? |
Minor nit:
More importantly, you are currently ignoring all unlink failures. Are you happy to ignore them? What are your error handling requirements? If you simply want to write a new function, please don't call it unlink. OTOH, if you really, truly want to override the built-in unlink function, that is an XY Problem and you need to tell us the real underlying problem you are trying to solve, why you think overriding unlink is a good way to solve it, and what alternatives you have considered.
In Section
Seekers of Perl Wisdom
|
|