daemonchild has asked for the wisdom of the Perl Monks concerning the following question:
correct me if i'm wrong ... but from what i can figure, an anonymous numeric array ref is being deferenced, then populated with hash array data?$array = [] #returns a ref to an anonymous array push @{$array}, { key => "$val", key2 => "$val2" }; #huh?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: array refs, hashes, and confusion
by suaveant (Parson) on Aug 03, 2001 at 00:13 UTC | |
by daemonchild (Acolyte) on Aug 03, 2001 at 01:23 UTC | |
|
Re: array refs, hashes, and confusion
by runrig (Abbot) on Aug 03, 2001 at 00:14 UTC | |
|
Re: array refs, hashes, and confusion
by VSarkiss (Monsignor) on Aug 03, 2001 at 00:18 UTC | |
|
Re: array refs, hashes, and confusion
by daemonchild (Acolyte) on Aug 03, 2001 at 01:26 UTC |