Arrays are subscripted with []s not {}.
@hash{...} = ...; is called a hash slice. See perlreftut.
In reply to Re: @h{qw(a b c)} doesn't create an @h array. It sets 3 scalar values in the %h hash.
by BrowserUk
in thread @h{qw(a b c)} doesn't create an @h array. It sets 3 scalar values in the %h hash.
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |