![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Style question on conditional return statements:by VSarkiss (Monsignor) |
on Oct 06, 2006 at 18:58 UTC ( #576741=note: print w/replies, xml ) | Need Help?? |
They're not the same, so it's not just a style issue. The first returns 1 or undef, the second returns whatever is_writable returns, and the third returns 1 or 0. It looks like you're trying to do a "call-thru", in which case I'd probably use the second one, or better still, use Method::Alias:
In Section
Seekers of Perl Wisdom
|
|