Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 imbibing at the Monastery: (4)
As of 2018-07-21 08:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (445 votes). Check out past polls.

    Notices?