On
Preserve @_ aliasing a (scalar||array) I wrap a scalar parameter into an
array while preserving it's aliasing. A problem I've
just encountered it that it doesn't preserve the
aliasing on the $list container itself, and I think
it's because "return $x" returns a copy of whatever
and I can't think of an aliasing equivalent...
If that made no sense it doesn't really matter.
I want a sub "ret" which will print "ALIAS" below
DB<28> sub ret { return $_[0] }
DB<29> $a = []; print \$_,"\n",\$a and \$_==\$a and print "ALIAS" fo
+r ret($a);
SCALAR(0x8201604)
SCALAR(0x8201b08)
What I want can probably be achieved in two steps:
&wrap_arg_one; for my $list ($_[0]) { ...}
but I'd prefer something like &shift_list in the
post above
Brad