in reply to reuse of split variable?
In each case, the computation on the right-hand-side of the '=' operator is completed in its entirety before it is assigned to @fields.
You can see a similar concept at work in this very common expression:
my $value = 10; $value = $value + 1; print $value, $/;
In this example, $value + 1 is evaluated first, and the result is assigned to $value
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: reuse of split variable?
by Anonymous Monk on Nov 11, 2004 at 18:57 UTC | |
by ysth (Canon) on Nov 11, 2004 at 19:49 UTC | |
by Anonymous Monk on Nov 11, 2004 at 23:10 UTC | |
by ysth (Canon) on Nov 12, 2004 at 09:25 UTC |