Hello,
I think you don't need to wrap unlink
unlink can remove both files with a uniq call, glob can help you to get the correct arguments::
unlink glob("${your_variable}{,.gz}");
Like other monks told, maybe you need to explain why do you need override a default function (not a good idea if you have not a strong reason)
Regards,In reply to Re: How to wrap a subroutine
by i5513
in thread How to wrap a subroutine
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |