[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error while using Storable.pm for persistent Data Structures from Perl(CGI script)
- Subject: Re: Error while using Storable.pm for persistent Data Structures from Perl(CGI script)
- Date: Mon, 23 Apr 2007 04:48:34 -0500
- From: "Deepak Mallya" <suppressed>
Clinton,
I tried it ..It gives me this at the line I added warn.
Warning: something's wrong at newprocessquery.pl line 24.
Undefined subroutine &main::retrieve called at newprocessquery.pl line 25.
I tried printing @INC after adding the use lib..It gives me the path at the front of @INC ..i dont understant y it isnt able to find
Storable.pm when I use retrieve..
Deepak
Also I printed @INC after adding
On 4/23/07, Clinton Gormley <suppressed> wrote:
> Add this to your CGI script:
>
> warn $INC{Storable.pm
};
change that to:
warn $INC{'Storable.pm'};
otherwise it'll break under use strict;
>
> and I bet you that the path that it prints to your error log is not the
> one to your home directory.
What you could try doing in this case (I assume you're running it as
straight CGI and not with Registry or anything similar) is to load
Storable before you load any other modules.
So :
use strict;
use warnings;
use lib '/home/....';
use Storable;
use Other::Modules...;
>
> Clint
> >
>
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.