Think about Loose Coupling | |
PerlMonks |
Re: searching nested structuresby exussum0 (Vicar) |
on Jan 05, 2004 at 02:12 UTC ( [id://318743]=note: print w/replies, xml ) | Need Help?? |
Update: It's the eval as roger implicitly pointed out in his reply as well. Time to be explicit. From man perlfunc on exists
Given an expression that specifies a hash element or array ele- ment, returns true if the specified element in the hash or array has ever been initialized, even if the corresponding value is undefined. The element is not autovivified if it doesn't exist. You are autovifying. You can see this by modifying your code as such.. (use Data::Dumper) Your eval is creating the a-formentioned structure. You may wanna break down your search structure in a different way. Here's the output from above. You are creating a circular reference.
Play that funky music white boy..
In Section
Seekers of Perl Wisdom
|
|