The stupid question is the question not asked | |
PerlMonks |
Re: equal keys in a hashby Tanalis (Curate) |
on Jun 26, 2003 at 16:40 UTC ( [id://269306]=note: print w/replies, xml ) | Need Help?? |
In any normal hash, no two keys can be the same anyway. Assuming that you mean that you need to check that a key doesn't already exist, you can use exists, like this:
You're question's not particularly clear, and that's a complete stab in the dark *grin* - could you post a little more about what it is you're trying to achieve? -- Foxcub
In Section
Seekers of Perl Wisdom
|
|