in reply to How to wrap a subroutine
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,
|
|---|