Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How to wrap a subroutine

by AnomalousMonk (Archbishop)
on Feb 06, 2015 at 00:00 UTC ( [id://1115720]=note: print w/replies, xml ) Need Help??


in reply to How to wrap a subroutine

The first rule of "How to wrap a subroutine": don't name it the same as a Perl built-in function (without a really good reason). This is such a bad idea! You are digging yourself a pitfall and seeding it with nasty booby-traps. The most likely ultimate result is a bamboo stake up a very sensitive part of your anatomy. Please call it something like  delete_file_and_zip() so I can sleep peacefully tonight.

Otherwise, the logic of the function looks ok.


Give a man a fish:  <%-(-(-(-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1115720]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-19 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found