in reply to Re^2: Alias vs Reference
in thread Alias vs Reference
That method of aliasing is interesting and occasionally useful, but it is hardly "The most general".
It's not limited to a scope like for and map aliasing. I did forget about glob aliasing.
my $y = do { local *temp = \$x; \our $temp };
It's more general in its breadth of types of aliases it can create, but it can't create an array of aliases.
resulting in two entirely separate, unconnected arrays:
You seem to have misread what I wrote. I didn't say it aliased the arrays.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Alias vs Reference
by BrowserUk (Patriarch) on Jun 18, 2012 at 05:40 UTC | |
by ikegami (Patriarch) on Sep 17, 2012 at 05:45 UTC |