No such thing as a small change | |
PerlMonks |
Re3: variable set to 0 ? 0 : 1by blakem (Monsignor) |
on Sep 06, 2002 at 08:31 UTC ( [id://195596]=note: print w/replies, xml ) | Need Help?? |
there's no substite for using wantarray to check your calling contextInteresting example, though I fail to see how wantarray will help in this case: Wont work properly in your example either.... Note that the above sub is equivalent* to the recommended way to return false, i.e. simply return: * except when used in void context, but that isn't relevant here. -Blake
In Section
Seekers of Perl Wisdom
|
|