in reply to Re: Variable scope in ternary ?: operator not propagating?
in thread Variable scope in ternary ?: operator not propagating?
Then how do you achieve the current effect of
? (Should give 42, 43, 42.)my $x=42; print "\$x before block: $x\n"; { my $x=$x; $x++; print "\$x inside block: $x\n"; } print "\$x after block: $x\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Variable scope in ternary ?: operator not propagating?
by Aristotle (Chancellor) on Mar 16, 2003 at 00:04 UTC |