in reply to Re: Re: No braces
in thread No braces

I meant, the way perl forces you to do it is counter-intuitive.
But Perl doesn't require you to do it this way. Perl allows to put either the cause, or the effect to go first.

Abigail

Replies are listed 'Best First'.
Re: Re: No braces
by saberworks (Curate) on Feb 12, 2004 at 00:01 UTC
    Sort of. You can only say if(COND) { do_something; } - you can't leave off the braces and still use that construct. You'd have to do something more funky using &&, etc.