Syntactic Confectionery Delight | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
But, in the next line, "@$self" is syntax for dereferencing an array reference, not a hash reference! The construct you refer to is called a 'hash slice' -- see perldata#slices. It assignes the 4 values derived from spliting $STANDINGS{$name} (or the four 0s from the constant) to the the four keys: . That one line is (mostly) equivalent to:
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In reply to Re: hash deref confusion: Intermediate Perl
by BrowserUk
|
|