in reply to Re^2: a reference by any other name...
in thread a reference by any other name...
I think there is a confusion of nomenclature here. \ returns a reference to something and that reference can be assigned to a scalar variable, which is then said to be a reference to the original something.
A copy of the reference by using my $ref2 = $ref1; generates the same result as my $ref2 = \$something;. You seem to be talking about some sort of alias, somewhat like a *nix file system hard link. I am having trouble imagining a situation where you would require such a thing in Perl. Perhaps you need to show us a code snippet to illustrate the problem you are having?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: a reference by any other name...
by blogical (Pilgrim) on Feb 20, 2006 at 02:42 UTC | |
by GrandFather (Saint) on Feb 20, 2006 at 02:56 UTC |