Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: weird behavior of creating a temp dir by File::Temp

by RMGir (Prior)
on May 05, 2014 at 21:59 UTC ( [id://1085122]=note: print w/replies, xml ) Need Help??


in reply to Re: weird behavior of creating a temp dir by File::Temp
in thread weird behavior of creating a temp dir by File::Temp

That's funny, but it's exactly the kind of bug that's hard to spot in your own code... I'm sure the OP's brain saw that as "CLEANUP" every time.

Sounds like an argument for Method::Signatures:

#!/usr/bin/perl use strict; use warnings; use Method::Signatures; func foo(:$CLEANUP) { print "I will".($CLEANUP?"":" not")." clean up\n"; } foo(CLEANIP => 1);
results in
$ perl testSignatures.pl 
In call to main::foo(), does not take CLEANIP as named argument(s) at testSignatures.pl line 13.

Mike

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-24 04:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found