in reply to Something eq hashref key
I'm not sure I fully understand your question, maybe you could provide a few more examples of what should be true and what should be false, but are you perhaps looking for exists? As in: if ( exists $fields->{field1} )
In Section
Seekers of Perl Wisdom