[Kc] when multidim emulation works
david nicol
whatever at davidnicol.com
Sun May 11 22:12:54 CDT 2003
Is this a bug?
% perl -le '$e{(0,1,2,3)} = 3; @a=(0,1,2,3); print $e{@q=@a}'
% perl -le '$e{(0,1,2,3)} = 3; @a=(0,1,2,3); print $e{@a}'
% perl -le '$e{(0,1,2,3)} = 3; @a=(0,1,2,3); print $e{0, at a[1,2,3]}'
3
% perl -le '$e{(0,1,2,3)} = 3; @a=(0,1,2,3); print $e{$a[0], at a[1,2,3]}'
3
Well it is, because it isn't DWIM; but the question is, is
$e{@a} supposed to interpolate $; or not? I want it to and
it doesn't seem to.
--
David Nicol, independent consultant and contractor
have a nice day, really. http://www.funnytimes.com
More information about the kc
mailing list