in reply to my (0?$a:$b): a koan
My guess was either (1,3) or ('', 3), leaning toward the former
I'd probably write the example code like the following to keep it a little simpler and to focus on the actual mechanism that is occuring
my $x = 1; my $y = 2; { my (0?$x:$y) = 3; print "x=$x\ny=$y\n" }
Very interesting result though, thank you for the explanation
Btw, do you have an explanation for why B::Deparse gets it wrong? I've hardly ever used that module so not even sure exactly what it's trying to do.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: my (0?$a:$b): a koan
by educated_foo (Vicar) on May 04, 2011 at 19:46 UTC | |
by LanX (Saint) on May 04, 2011 at 20:10 UTC | |
by educated_foo (Vicar) on May 04, 2011 at 21:13 UTC | |
by wind (Priest) on May 04, 2011 at 21:24 UTC | |
by BrowserUk (Patriarch) on May 04, 2011 at 20:00 UTC |