Perl v5.6.1 built for i686-linux
kernel 2.4.27
Red Hat Linux release 7.3 (Valhalla)
Hi, can anyone offer any advice?
I am using Class::DBI in a DB wrapper object
...
use strict;
use warnings;
use base 'Class::DBI';
...
I am using the object, and getting dies - the die message I am getting is
Can't locate Class/DBI/__/Base.pm in ...
Strangely, this doesn't cause what I would normally expect from a die, which when hit from the browser is a 500 error. It returns a page as normal...
I am catching the die sig like this:
...
$SIG{__DIE__} = \&prepareToDie;
...
sub prepareToDie{
my $message=shift;
# report and log the error etc
...
die($message);
}
and this has and is working on our systems for years.
The script using this wrapper does what it should insofar as it reads the database and returns the expected values etc
I cannot find any calls to Class::DBI::__::Base; anywhere on the box, or any directory __ etc. I have looked at Class::DBI and ...nothing.
I have run the identical code on a different box:
v5.8.0 built for i386-linux-thread-multi
Linux 2.4.21-15.EL
Red Hat Enterprise Linux ES release 3 (Taroon Update 2)
and I dont get the error at all.
Now, clearly I am missing something here, can you tell me what it is?
any help much appreciated.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.