in reply to Problems Processing Hash within Cgi Script

  1. Have you verified that your hash is being populated? Data::Dumper is your friend here ...
  2. Also, I would extract that portion of code and run it from the command line and make sure you see what you should see.
  3. Then, I would verify that the CGI script has the same environment as your commandline. For example, is it finding the same MONKEY::MONKS as the one you're finding?

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

  • Comment on Re: Problems Processing Hash within Cgi Script

Replies are listed 'Best First'.
Re^2: Problems Processing Hash within Cgi Script
by EchoAngel (Pilgrim) on Dec 22, 2004 at 15:54 UTC
    1. Ya, there is tons of information when i dump using data::dumper 2. when i do perl myscript.cgi, i see the html output. I saved that to the another file.html and I open it in a browser and it's fine. 3. i'm sure that package works.
        yes it has permission to read it. When I run perl myscript.cgi , the output is a valid html page. When running myscript.cgi on the browser, till still cuts off the html after my hash code section