Problems? Is your data what you think it is? | |
PerlMonks |
Re: Hash assignments using mapby japhy (Canon) |
on Feb 25, 2007 at 00:15 UTC ( [id://601938]=note: print w/replies, xml ) | Need Help?? |
In addition to what others have said, you could do:
which you would then test with exists $keepers{$x}. Althought I'm curious why you need the %keepers hash if you have the @to_keep array.
In Section
Seekers of Perl Wisdom
|
|