in reply to Time::Format string that works in cli crashes cgi
FWIW, your CGI-script works fine here: perl v5.10.0, openSuSE 11.1, Time::Format 1.09. Works both - with root and non-privileged users.
However, It seams that Time::Format is checking if an XS version
is available. Maybe it is crashes while doing so or
while doing the parsing later on?
Maybe adding# Here we go through a bunch of tests to decide whether we can use the # XS module, or if we need to load and compile the perl-only # subroutines (which are stored in __DATA__). my $load_perlonly = 0; $load_perlonly = 1 if defined $Time::Format::NOXS && $Time::Format: +:NOXS;
to your CGI helps?... BEGIN { $Time::Format::NOXS=1; } use Time::Format; ...
Update: forgot to add: while doing the parsing later on
Update2: clarified, that Time::Format::NOXS had to be set prior to using the module.
Update3: Now, since this experiment was successful, it seems that the problem is correlated with the usage of the XS based module (or something depending on that).
Things you could try:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Time::Format string that works in cli crashes cgi
by leocharre (Priest) on Jan 07, 2009 at 21:57 UTC | |
by Anonymous Monk on Jan 08, 2009 at 07:56 UTC | |
|
Re^2: Time::Format string that works in cli crashes cgi
by leocharre (Priest) on Jan 07, 2009 at 21:16 UTC |