Ah, I see, your file Time/Format.pm has nothing to do with the CPAN module of the same name... (that explains a number of things :) — Side note: although you can of course do it - i.e. store your code with a file name/path differing from the module's package name - I would personally advise against doing so. It only confuses people, especially if a public module of the same name already exists...
As to your actual problem, have you made sure the DBI module is loaded before you're using its constants, as in
($type == DBI::SQL_DATE)? 8 : ($type == DBI::SQL_INTEGER and $sth->{PRECISION}->[$i] > 15 )? 10 +: ($type == DBI::SQL_NUMERIC and $sth->{PRECISION}->[$i] > 15 )? 10 +: ...
In case of doubt, put a use DBI; somewhere near the top of your Format.pm file (btw, you are using the regular CPAN DBI module, are you? :) — That should make the constants known, and thus avoid the "bareword not allowed" errors. (I have no idea why your code apparently did work with 5.8.0, but that'll be a moot point once you have it working again...)
In reply to Re^3: OS upgrade affecting perl causes all codes to abend
by almut
in thread OS upgrade affecting perl causes all codes to abend
by wtolentino
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |