No it is not.
It's essentially the same as
my $aRR = [];
push @$aRR, $lines;
$FULLINESS{$account} = $arr;
See what i'm saying?
MJD says you
can't just make shit up and expect the computer to know what you mean, retardo!
** The Third rule of perl club is a statement of fact: pod is sexy.
|
| [reply] [d/l] |
Actually, push @anything, "$lines" creates an array of scalars, which is why jeffa warns against it--since it may not be what you wanted.
To your original question, push @{$FULLLINES{$account}}, “$lines”; is populating an anonymous arrayref for key $account in the %FULLLINES hash. %FULLLINES would look something like this:
(
'account1' => [ 'lines','lines', ],
'account2' => [ 'lines', ],
)
When in doubt, you can
use Data::Dumper;
print Dumper(\%FULLLINES);
--
You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.
| [reply] [d/l] [select] |
Hrm. I'll have to take your (that's a "your" plural, btw) word for it. This is why I don't use hashes of arrays or arrays of hashes.
I've had to update some scripts by co-workers who use variables like $rvw (your guess is almost as good as mine on what that variable represents (my only advantage is I have some context)) and insane compositions such as the above (actually the above make the compositions I'm dealing with look like cake sometimes). And of course the previous developer didn't know what a comment was. They're always hard for me to decipher, and are a good indication on why people think Perl looks like line noise...
Anyway, thanks for the clarification.
| [reply] |