Phoenix.pm: map + grep problem

Victor Odhner vodhner at cox.net
Mon May 5 22:46:22 CDT 2003


Shay Harding wrote:
> This could be written as:
> my %h_a2;
> @h_a2{@a2} = undef;

OK, wow.  It works nicely, but
what on earth is @h_a2{@a2}???

I see you taking a hash, calling it a
list, subscripting it like a hash,
and using a list as the subscript.

I have no problem with subscripting a
hash with a list, that's old hat.
But what is it called when you put
"@" in front of it instead of "$"?

I guess I should be asking for the
latest and greatest in *Perl* books!
I've been Perling continuously since
1994 but you guys are shaming me.

Vic






More information about the Phoenix-pm mailing list