On Jun 1, 1:49 pm, [EMAIL PROTECTED] (Chas Owens) wrote: > On 6/1/07, Paul Lalli <[EMAIL PROTECTED]> wrote:> On Jun 1, 11:21 am,
> > and unscalable. (As soon as you add an 'else' clause, > > people have to read it two or three times to understand what's being > > done). Avoid at all costs. > > Which is why you never use an unless with an else. If you have > > unless ($foo) { > print "false\n"; > } > > and you find you need an else you change it to an if > > if ($foo) { > print "true\n" > } else { > print "false\n"; > } Thank you for proving my point for me. :-P Paul Lalli -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/