in reply to Re^2: Perl Hashes, keys under keys (I think)?
in thread Perl Hashes, keys under keys (I think)?
What is the difference between using curly-brackets there and square-brackets?
In this context, curly brackets are the anonymous hash 'composer' (to use the terminology of perlref), square brackets are the anonymous array composer. See Making References items 3 and 2, respectively, in perlref.
Update: Maybe one should say "the anonymous { hash => 'composer' } and the anonymous [ qw(array composer) ]".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl Hashes, keys under keys (I think)?
by mmartin (Monk) on Sep 19, 2011 at 17:57 UTC |