Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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"
Replies are listed 'Best First'.
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?
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 meditating upon the Monastery: (3)
As of 2015-07-28 03:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (251 votes), past polls