Beefy Boxes and Bandwidth Generously Provided by pair Networks
Frank Problems? Is your data what you think it is?  Useless
unless  by GrandFather (Cardinal) on Aug 05, 2005 at 21:44 UTC
( #481375=perlmeditation: print w/ replies, xml ) Need Help??
There has been discussion in the ChatBox recently about the need
for unless. It was triggered by the suggestion that Perl should
have an otherwise for use as a modifier:  a if b; c otherwise;
which looks ok iff the otherwise binds to the condition in the
previous if. But do we need otherwise when we have unless?
Consider:  a if (my $o) = b; c unless $o;  Then again, do we
need unless. Many people find if ! $o at least as readable as
unless $o and actually should be preferred because we are lazy,
right?  When experienced Perlers (no, no, not me!) stand up in
public and admit that they have fallen into traps posed by
unless, perhaps it is time to deprecate the useless thing?  Perl
is Huffman encoded by design.  Comment on Useless unless Select
or Download Code Re: U