Hi I want to make a simple wrapper subroutine which delete a file and delete file.gz too.
sub unlink{# new unlink my $file_name=shift; unlink "$file_name"; #original unlink unlink "${file_name}.gz"; #original unlink }
How can I do this properly?
In reply to How to wrap a subroutine by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |