CGI.pm and &UNIVERSAL::isa called... 
Author Message
 CGI.pm and &UNIVERSAL::isa called...

Hello,
I installed CGI.pm 2.39 library on a UNIX server / Perl5.003

Then I tried a form handling script which parses inputs and prints on
the fly to pages, I got this error message:

&UNIVERSAL::isa called at /usr/local/lib/perl5/CGI.pm line 276

The script I tried starting with this:

use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser);

use strict;

And The line that server is talking about is this:

276)          unless (defined($_[0]) &&
277)          (ref($_[0]) eq 'CGI' || UNIVERSAL::isa($_[0],'CGI')) #
slightly optimized for common case

Any help will be appreciated
Thanks in advance,
Sincerely



Wed, 20 Sep 2000 03:00:00 GMT  
 CGI.pm and &UNIVERSAL::isa called...

Quote:

>Hello,
>I installed CGI.pm 2.39 library on a UNIX server / Perl5.003

>Then I tried a form handling script which parses inputs and prints on
>the fly to pages, I got this error message:

>&UNIVERSAL::isa called at /usr/local/lib/perl5/CGI.pm line 276

>And The line that server is talking about is this:

>276)          unless (defined($_[0]) &&
>277)          (ref($_[0]) eq 'CGI' || UNIVERSAL::isa($_[0],'CGI')) #
>slightly optimized for common case

UNIVERSAL::isa isn't available in perl5.003.   You need to upgrade to
a newer perl (5.004 or later).

Or you could try and find an old version of CGI.pm which is 5.003
compatible.

Why doesn't CGI.pm 2.39 have a  "use 5.004;" in it, since it isn't
compatible with earlier Perls?

Mike Guy



Wed, 20 Sep 2000 03:00:00 GMT  
 CGI.pm and &UNIVERSAL::isa called...

Hello,

I was using perl4, than I installed perl5.003. (I didnot uninstall
perl4, coz I dont know how. Also I have some scripts which are working
with it.)
Now I want to upgrade as you adviced, but I dont know how. Should I
just download the latest version and just install it? Will it replace
the old one? (I am using a virtual server. And my space is limited as
you know. )
I would apreciate any advice...

Thanks again,
Good luck on all your works,
Sincerely


Quote:

>>Hello,
>>I installed CGI.pm 2.39 library on a UNIX server / Perl5.003

>>Then I tried a form handling script which parses inputs and prints on
>>the fly to pages, I got this error message:

>>&UNIVERSAL::isa called at /usr/local/lib/perl5/CGI.pm line 276

>>And The line that server is talking about is this:

>>276)          unless (defined($_[0]) &&
>>277)          (ref($_[0]) eq 'CGI' || UNIVERSAL::isa($_[0],'CGI')) #
>>slightly optimized for common case

>UNIVERSAL::isa isn't available in perl5.003.   You need to upgrade to
>a newer perl (5.004 or later).

>Or you could try and find an old version of CGI.pm which is 5.003
>compatible.

>Why doesn't CGI.pm 2.39 have a  "use 5.004;" in it, since it isn't
>compatible with earlier Perls?

>Mike Guy

"Let Information Be Free..."


Thu, 21 Sep 2000 04:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. CGI.pm and &UNIVERSAL::isa called...

2. ns-upload, CGI.pm & cgi-lib.pl

3. question....@ISA /my @ISA

4. How universal is POSIX.pm?

5. Need "Universal" exporter.pm File

6. DeepCopy.pm - stab at a universal deep copier

7. How universal is POSIX.pm?

8. OO / @ISA question with Curses.pm

9. Uniform - Universal HTTP/CGI Form Parser

10. Undefined subroutine &main::read_and_parse_form_data called at web_store.cgi lin

11. CGI.pm using param() call

12. Generating cgi.pm calls for existing html

 

 
Powered by phpBB® Forum Software