Boogman has asked for the wisdom of the Perl Monks concerning the following question:
is that any different from saying the following?my $arrayref = [1, 2, 3];
Are the two array parts allocated any differently or anything like that? The places I've read about anonymous structures don't really get into it so I'm assuming that they aren't, but I'm kind of curious to see if thats true or not.my $arrayref; { my @array = (1, 2, 3); $arrayref = \@array; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Anonymous structures
by merlyn (Sage) on Jul 31, 2000 at 18:49 UTC |