How to find existence of a hash value.

V

venu madhav

Hi all,
I've a problem in CGI/PERL. I've a text box in my web page
whose value is taken by the server written in CGI Script. The value of
that text box is stored in an XML file for further use.
My problem is that when I don't have any value in that text
box and when CGI tries to print that value, it is printing the HASH
value of the key ( text box here). How can I validate for the
existence of value in that hash?

Please let me know if you need any other information.

Thanks,
Venu.
 
J

Jürgen Exner

venu madhav said:
How can I validate for the
existence of value in that hash?

Depending upon what exactly you mean one of
perldoc -f exists
perldoc -f defined
should solve the problem.

jue
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top