Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Passing Str or undef ?by John M. Dlugosz (Monsignor) |
on Apr 26, 2011 at 12:43 UTC ( [id://901338]=perlquestion: print w/replies, xml ) | Need Help?? |
John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
Hey, if using MooseX::Method::Signatures, how do you declare a parameter that can be passed a value of undef? I know something like Str $foo? will let me leave if off, and the functions sees it as undef if it wasn't passed. But it still complains if the caller explicitly passes an undef in that spot!
Back to
Seekers of Perl Wisdom
|
|