How to find existence of a hash value.

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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.


Re: How to find existence of a hash value.

Quoted text here. Click to load it

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


Site Timeline