If you expect only a single key, use:
If you want to iterate, add an inner loop:my ($key) = keys %$_;
for my $key (keys %$_) { .... }
-- Randal L. Schwartz, Perl hacker
In reply to Re: LoH Incrementing Autovivification
by merlyn
in thread LoH Incrementing Autovivification
by metaperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |