in reply to @h{qw(a b c)} doesn't create an @h array. It sets 3 scalar values in the %h hash.
Arrays are subscripted with []s not {}.
@hash{...} = ...; is called a hash slice. See perlreftut.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: @h{qw(a b c)} doesn't create an @h array. It sets 3 scalar values in the %h hash.
by ikegami (Patriarch) on Mar 10, 2005 at 18:42 UTC |