Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by RMGir (Prior)
on May 05, 2014 at 21:59 UTC ( #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
Node Status?
node history
Node Type: note [id://1085122]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2018-01-18 00:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (206 votes). Check out past polls.

    Notices?