It's the line undef @hsh{@ary} that I can't figure out. I need baby step explanations, I guess. Isn't @hsh and %hsh two completely different things? Thanks in advance. Pls refer to the what page # in the Camel book if possible.my @ary = qw(a b c d d e b d); my %hsh; undef @hsh{@ary}; my @ary2 = keys %hsh; print "@ary2\n";
In reply to hash slice by pglenski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |