note
RMGir
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.
<p>
Sounds like an argument for [cpan://Method::Signatures]:
<code>
#!/usr/bin/perl
use strict;
use warnings;
use Method::Signatures;
func foo(:$CLEANUP)
{
print "I will".($CLEANUP?"":" not")." clean up\n";
}
foo(CLEANIP => 1);
</code>
results in
<pre>
$ perl testSignatures.pl
In call to main::foo(), does not take CLEANIP as named argument(s) at testSignatures.pl line 13.
</pre>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-151991">
<br>Mike
</div></div>
1085117
1085118