>
> Is this an array of hashes desingnated by { }?
>
> my %month;
> @month{ qw/Jan Feb Mar Apr May Jun Jul Aug Sep Oct
> Nov Dec/ } = 0..11;
>
No, it is a hash slice.
my %foo;
@foo{ qw / one two three / } = qw / uno dos tres / ;
is equivalent to ....
my %foo = ( one => 'uno',
two => 'dos',
three => 'tres' );
is equivalent to ...
my %foo;
$foo{one} = 'uno';
$foo{two} = 'dos';
$foo{three} = 'tres';
--
Lawrence Statton - [EMAIL PROTECTED] s/aba/c/g
Computer software consists of only two components: ones and
zeros, in roughly equal proportions. All that is required is to
place them into the correct order.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/