Forum Moderators: coopster & phranque

Message Too Old, No Replies

CGI update Undefined subroutine CGI::Persistent::update

CGI perllib persistent

         

givgov

9:21 am on Apr 10, 2003 (gmt 0)

10+ Year Member



I am building a web server using perl 5.6.0 and am getting the following error...

Undefined subroutine CGI::Persistent::update
[Thu Apr 10 10:13:09 2003] [error] Premature end of script headers:

I have installed the latest version of CGI and CGI::Persistence but still get the error, does anybody know of the correct perllib I need to download?

Kind Regards

Gavin.

jatar_k

8:10 pm on Apr 10, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld givgov,

Where are all the perl folk? ;)

Not up on my perl so much but does the different lib spelling matter?

Undefined subroutine CGI::Persistent::update

I have installed the latest version of CGI and CGI::Persistence

givgov

8:06 am on Apr 11, 2003 (gmt 0)

10+ Year Member



oooops sort of typo thanks for spotting :) the module I have installed is CGI-Persistent-0.23, which is the latest version, it creates a dir /usr/lib/perl/site_perl/5.6.0/CGI/ and creates the module Persistent.pm but this does not refer anything like update, and searching my perllibs shows no update.pm or such like.

netcommr

9:55 am on Apr 11, 2003 (gmt 0)

10+ Year Member



did you check permissions and ownership of the Persistent.pm file?

is '/usr/lib/perl/site_perl/5.6.0/' your running Perl install?

any info at CPAN [cpan.org]?

givgov

9:07 am on Apr 14, 2003 (gmt 0)

10+ Year Member



I have checked the perms and they seem fine, and the running perl @INC is /usr/opt/perl5... and /usr/lib/perl they seem to share all the same dir's, unfortunatley starting to run out of ideas now .. :(

givgov

10:28 am on Apr 15, 2003 (gmt 0)

10+ Year Member



PROBLEM SOLVED!
it turned out to be update was a seperate sub written into Persitent.pm by one of my colleuges that has long left, so I managed to get a copy of the sub and added into the pm and it all sprung into life!

Thanks for everybodys help tho... :)
Gav.