Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have read an xml document using XML::Simple in a perl hash.I have accessed multiple sub hashes in my program.But at one line when I try to use a sub hash,it says "not a hash reference".So,what I would like is that if that sub hash exists,it performs one function and if that particular sub hash does not exist,it skips that part.Please suggest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Non existent Hash and error"not a hash refernece at perl line"
by roboticus (Chancellor) on Aug 17, 2015 at 11:37 UTC | |
|
Re: I want to check if a particular hash exists or not and not just the key.
by stevieb (Canon) on Aug 17, 2015 at 13:16 UTC | |
|
Re: Non existent Hash and error"not a hash refernece at perl line"
by vinoth.ree (Monsignor) on Aug 17, 2015 at 09:24 UTC | |
|
Re: Non existent Hash and error"not a hash refernece at perl line"
by anonymized user 468275 (Curate) on Aug 17, 2015 at 15:20 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |