Paul wrote:

> Either I'm misunderstanding the code, the docs, or both, but I think
> it's the docs. What are they trying to say? Merely that
> 
>   my $x = 1 if 0;
> 
> might not set the variable? 

let me put it this way. do you know the difference of:

if(0){
        my $x = 1;
}

and:

my $x = 1 if(0);

if you do, you will know why the second form is what Perl discourages you to 
do. if you don't, you probably have the reread the doc again :-)

david


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

Reply via email to