On Tue, Sep 20, 2005 at 18:19:42 +0000, [EMAIL PROTECTED] wrote:
> Some other possible problems:
> 
> 1: if $condition is an expression with side-effects then your new construct 
> has a different meaning then the original code.

If it has side effects then I always

my $bool = .... test ... ;

if ($bool) { 
        pre
}

mid

if ($bool) {
        post
}

> 2: if the middle part does something that changes the value of  the 
> expression $condition then the new construct again has a different meaning.

Err, that's the point


-- 
 ()  Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418  perl hacker &
 /\  kung foo master: /me sneaks up from another MIME part: neeyah!!!!!

Attachment: pgpnir4ic0IjQ.pgp
Description: PGP signature

Reply via email to