in reply to my $variable with &&do{} doesn't compile
In the second example, however, you create the variable at the same time as you attempt to use it. As the variable doesn't exist until after the statement is executed (which doesn't happen until the compiler hits the semi-colon), it's not possible to pass it into a function within that statement.
I will point out that I'm not 100% sure about this, though - this is based on someone else's attempt at explaining a similar problem to me.
Hope that helps ..
-- Foxcub
#include www.liquidfusion.org.uk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: my $variable with &&do{} doesn't compile
by Skeeve (Parson) on May 26, 2003 at 09:15 UTC | |
by Tanalis (Curate) on May 26, 2003 at 09:16 UTC |