Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: CGI:Application "error"

by neptuneray (Sexton)
on Nov 15, 2012 at 17:13 UTC ( #1004041=note: print w/ replies, xml ) Need Help??


in reply to CGI:Application "error"

and one more thing ...

In my own error sub, if I print the variable that is passed to me ($@, according to the doc), I get

"Got error: JCS::Shop=HASH(0x6343538)"

where "JCS::Shop is the module where this error happens.

I have NO IDEA of what this is telling me! In the example in the doc, they get a nice clean error message, like "Illegal division by zero", etc.

Thanks again, Ray


Comment on Re: CGI:Application "error"
Re^2: CGI:Application "error"
by kennethk (Monsignor) on Nov 15, 2012 at 18:39 UTC

    JCS::Shop=HASH(0xDEADBEEF) and the like happen when you stringify a hash reference blessed into the JCS::Shop package. In this case, you'll probably want to pass $@ to Dumper in Data::Dumper to see what's actually stored in the variable. See Basic debugging checklist.


    #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

      Thanks for the help. I am now reading a proper Perl error message. But that doesn't mean I'm out of the woods! Looks like I've got some tricky bug lurking somewhere in some module ... oh, well ... sometimes I regret having given up the slide trombone for a career in IT ...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004041]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2014-07-25 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (174 votes), past polls