Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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 (Abbot) 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?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2015-03-27 17:19 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (615 votes), past polls