How do I see the actual error in an "eval" section? 
Author Message
 How do I see the actual error in an "eval" section?

I recently had an oracle query error that was inside an eval, and the
only info I could get back from perl was there was some "eval Error".


In this case I pulled it into pdb and traced it to the prepare
statement, then rewrote the section ABOVE the eval, inserting the
Oracle query and prepare, then finally detected the actual error.

If you can point me to more info to read that would be great!

  tuxy> perldoc eval
  No documentation found for "eval".
  tuxy> perldoc perleval
  No documentation found for "perleval".


which I don't think would apply as I'm not "using DB";. Maybe there is


  empty array

  empty array

  empty array
  DB<5>

Thanks!



Tue, 02 Mar 2004 13:20:30 GMT  
 How do I see the actual error in an "eval" section?

Quote:
>  tuxy> perldoc eval

Try perldoc perldoc :-)

You want "perldoc -f eval". Now, as to your error - please include
relevant information about used modules and some code.

HTH,
--

split//,unpack('u*','L#`T&)QD5#0`#!!`#%1D)#08`#P05!!(3``$$"``#"0L&``('.
'"`P<!`````0$`'));$t=~s/(\d)(.)/$2x$1/eg;map{$t.=substr$t,$i,1,''while



Tue, 02 Mar 2004 13:40:55 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Error with eval() when "!" is included

2. Error Trapping with "die" and eval

3. Anyone seen "Sprite"

4. Seeing "exit(xxxx)" values as negative

5. Q on "unless $seen"?

6. Has Anyone Done a "Sysinfo.pm?"

7. My senior project is "done"

8. doing a "cron job" in CGI

9. Q: eval equivalent of "perl -wc"

10. odd behavior of eval "/^\xNN/"

11. eval "require $class";

12. Perl "plugins" and eval code

 

 
Powered by phpBB® Forum Software