nothingmuch has asked for the wisdom of the Perl Monks concerning the following question:
Does anybody know how to get
to DWIM? It prints " 2", and I would like "2 2".use Lexical::Alias qw(alias); my @array; alias $array[0], $array[1]; $array[1] = 2; print "@array";
P.S. Will Perl 6's runtime bindings do this?
Update: I should note that I tried alias_r \$array[0], \$array[1];, and it doesn't work either. Don't bother ;-)
-nuffin
zz zZ Z Z #!perl
zz zZ Z Z #!perl
Back to
Seekers of Perl Wisdom