We don't bite newbies here... much | |
PerlMonks |
Re: failure to require an installed module + eval fails to trap?by syphilis (Archbishop) |
on Jul 26, 2015 at 04:51 UTC ( [id://1136323]=note: print w/replies, xml ) | Need Help?? |
Just for kicks I have tried "using" the module as well to no effect I presume that means the module loaded ok. (Please correct me if that's wrong.) Should it not be blowing at the die line below it? There's no "die" in the snippet of code (lines 35 to 43) that you've given. Update: but there is a "die" at the next line (line 44) - and that's where the script is, in fact, dying. However, because, $err ends with a newline, you don't get the "at line 44" in relation to the die. The "at line 39" is where the error occurred - not where the script died. If you chomp $err; before you die($err); you should see what I mean. I can't put my finger on the reason for the "Can't locate Apache::Session::Postgres" error. Perhaps related to some permissions problem ? I seem to recall that there have been occasions where "Can't locate" should really have been "Can't load" - because the module was actually located ok, but could not be loaded (because of permissions issues). What does the following command output: Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|