bsb has asked for the wisdom of the Perl Monks concerning the following question:
If that made no sense it doesn't really matter. I want a sub "ret" which will print "ALIAS" below
What I want can probably be achieved in two steps: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)
but I'd prefer something like &shift_list in the post above&wrap_arg_one; for my $list ($_[0]) { ...}
Brad
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Aliasing and return, how does return work?
by japhy (Canon) on Jun 30, 2004 at 03:31 UTC | |
by bsb (Priest) on Jun 30, 2004 at 04:37 UTC | |
by japhy (Canon) on Jun 30, 2004 at 05:01 UTC | |
by bsb (Priest) on Jun 30, 2004 at 06:38 UTC |