Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > CGI::Carp Problems
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 23rd October 19:53
the-smtpguy
External User
 
Posts: 1
Default CGI::Carp Problems



Hi all,

I'm fairly new to Perl so excuse how stupid i sound.

I have this perl script that needs CGI, so Carp.pm gets installed

I got the modules installed no problem, that was easy enough.

now when i try to run the script doing perl scriptname.pl
i get the following error:

Couldn't open config file: No such file or directory at
/usr/lib/perl5/5.8.0/CGI/Carp.pl line 312

Ok so i figure something is missing that line 312 is looking for.

A quick vi to Carp.pm jump to line 312 shows me the following:
sub realdie {CORE::die(@_); }

Now, i know i'm really new to perl, but that doesn't look like it is
looking for anything, it looks like a sub for Carp.pl dying on me, so
i'm now lost

I would really appreciate any help/guidance anyone can offer.

Cheers,

Gary
  Reply With Quote


 


2 23rd October 19:54
gunnar hjalmarsson
External User
 
Posts: 1
Default CGI::Carp Problems



<snip>

The problem seems to be in scriptname.pl rather than in CGI::Carp,
i.e. the script fails when trying to open a configuration file. My
guess is that you are supposed to set the path to the config file in
scriptname.pl, and that the path is not correct.

If that doesn't help, you'd better ask the script author for help at
first hand.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
  Reply With Quote
Reply


Thread Tools
Display Modes




666