http://www.perlmonks.org?node_id=1085122


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