--- david <[EMAIL PROTECTED]> wrote:
> let me put it this way. do you know the difference of:
>   if(0){ my $x = 1; }
> and:
>   my $x = 1 if(0);

Several. The primary *difference* I see is that in your version, the
scome of $x is limited to the block of the if statement, where in mine,
it would be theoretically scoped to the enclosing block, except that
niether would actually get executed. :)

For either, the optimizer would scrub that code right out of the
program, right?

But if it didn't, they'd eventually get boiled down to practically the
same opcodes, wouldn't they?

> 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 
> :-)

I understand that if you ever *need* to have a condition determine
whether or not a lexical comes into existance then you are either
coding poorly, or you are deep into the realm of Guru where lesser
beings such as myself seldom have the courage to tread. :)

My problem wasn't with the code. It was with the wording in the
documentation. If there is something I'm missing, I want to get it. If
not, then I am concerned that the wording will confuse others as it has
me. 

That's all. >:O]


__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

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

Reply via email to