Brian Ling wrote:
> Thanks for that, I had not released you could effectively use the
> getTarget() return value twice :-)
>
> > well this works:
> > return if 'MAIN' eq (my $target = getTarget());
>
> > /Stefan


Personally, I prefer:

    ( my $target = getTarget() ) eq 'MAIN' and return;

as I believe that the declaration should always be at the beginning
of the line. If that's not possible with the construct you need
then there's nothing lost by doing

    my $target;
    return if 'MAIN' eq ( $target = getTarget() );

Cheers,

Rob





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to