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.
Mike
Sounds like an argument for Method::Signatures:
results in#!/usr/bin/perl use strict; use warnings; use Method::Signatures; func foo(:$CLEANUP) { print "I will".($CLEANUP?"":" not")." clean up\n"; } foo(CLEANIP => 1);
$ perl testSignatures.pl In call to main::foo(), does not take CLEANIP as named argument(s) at testSignatures.pl line 13.
Mike
|
---|
In Section
Seekers of Perl Wisdom