Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Error when trying to loop through DB and run a script

by roboticus (Chancellor)
on Apr 03, 2007 at 16:20 UTC ( [id://608092]=note: print w/replies, xml ) Need Help??

in reply to Error when trying to loop through DB and run a script

Turn on warnings, strict and diagnostics and try again. I'll bet perl will give you a few hints.

Update: Ignore this. They were turned on, and I missed 'em.

Reading through the error chain, it seems that the problem might be that main::setImage is passing PDF::API2::image_png an invalid object. (The hint I'm working from is the 'undefined' argument in multiple call levels...)


Replies are listed 'Best First'.
Re^2: Error when trying to loop through DB and run a script
by ikkon (Monk) on Apr 03, 2007 at 16:32 UTC
    I got the error from the script, i always use warnings and diagnostics to debug, its a pain otherwise :) thanks though

      You might want to try the perl debugger. I've only used it recently (due to a recent thread about it), and find it very easy to use for problems like this. Just invoke your script like:

      perl -d and then you can set a breakpoints, step through the code, display variable values, etc.


Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-07-15 20:59 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.