Hi all, I am using Windows 98 and active perl , and now I have 2 problems here :
Q1)
I am trying to use CGI module to output a GIF, but I found that it is fail .
However, my purpose is to output multiple GIFs, just something looks like a counter.
Would anybody have suggestion for a better module
On Tue, Jul 31, 2001 at 05:34:01PM -0400, Brett W. McCoy wrote:
: On Tue, 31 Jul 2001, Ryan Davis/Pamela Karr wrote:
:
: > How can I change my @INC variable? Can I just:
: >
: > @INC = (@INC, "/home/me/libs/");
: >
: > It seems like I would need to change it before my perl program starts...
: >
On Tue, 31 Jul 2001, Ryan Davis/Pamela Karr wrote:
> How can I change my @INC variable? Can I just:
>
> @INC = (@INC, "/home/me/libs/");
>
> It seems like I would need to change it before my perl program starts...
> Also, if I put a .pm file in one of the @INC dirs, will I be able to:
>
> use mo
How can I change my @INC variable? Can I just:
@INC = (@INC, "/home/me/libs/");
It seems like I would need to change it before my perl program starts...
Also, if I put a .pm file in one of the @INC dirs, will I be able to:
use module;
even if it is not in the main system perl libs?
Thanks,
R
> the script should be ...
thanks John. OK got it working. so what am I looking for? here is some of
the info:
PATHS are: /bin /usr/vde/bin /usr/local/bin /usr/gnu/bin /usr/ucb
/usr/css/bin /usr/local/cvbin
$INC[1]= /usr/local/pkg/perl5/lib
$INC[2]= /usr/local/pkg/perl5/lib/site_perl/sun4-so
tdk wrote:
Did you just copy the FTP.pm file into this area, or did you actually do
the install? i.e., something like
perl Makefile.PL prefix=/myinstall/directory
make
make test
make install
I just deleted the entire libnet folder & started over.
so, first I did:
perl Makefile.PL prefix=/l
print '';
}
}
else
{
print "$key = $ENV{$key}\n";
}
}
print 'INC follows:';
foreach $b (@INC) {
print '$INC[' . $i++ . "]= $b\n";
print '';
-----Original Message-
From: Al Hospers [mailto:[EMAIL
> Oops ... too much paste ...
sorry John. does not compute?
Al
> if ($#path > 0)
> @paths=split /:/, $ENV{$key};
Should be
if ($#path > 0) {
@paths=split /:/, $ENV{$key};
}
Your content type should be (space after the colon)
print "Content-Type: text/html\n\n";
--- Al Hospers <[EMAIL PROTECTED]> wrote:
> is this correct?
>
Oops ... too much paste ...
John W Moon
-Original Message-
From: Al Hospers [mailto:[EMAIL PROTECTED]]
Sent: June 08, 2001 15:57
To: [EMAIL PROTECTED]
Subject: RE: using modules installed in local CGI bin
is this correct?
#!/usr/local/bin/perl
print "Content-Type:text/htm
> Did you just copy the FTP.pm file into this area, or did you
> actually do
> the install? i.e., something like
>
> perl Makefile.PL prefix=/myinstall/directory
> make
> make test
> make install
I did perl Makefile.PL but not the perfix... stuff. perhaps I should remove
it all, copy it up again
is this correct?
#!/usr/local/bin/perl
print "Content-Type:text/html\n\n";
print 0)
@paths=split /:/, $ENV{$key};
if
Al Hospers wrote:
: I changed the setup to
:
: #!/usr/local/bin/perl
: use CGI qw(:all);
: use lib "./libnet";
: use Net::FTP;
: print header;
: ...
: now I get this error
:
: BEGIN failed--compilation aborted at weather_ftp.cgi line 4.
I presume this is from the server's error_log. Is th
OK,
I changed the setup to
#!/usr/local/bin/perl
use CGI qw(:all);
use lib "./libnet";
use Net::FTP;
print header;
originally this was the error I got:
BEGIN failed--compilation aborted at weather_ftp.cgi line 4.
vde$ perl weather_ftp.cgi
Can't locate Net/FTP.pm in @INC (@INC contains: ./
: use line "./libnet";
sorry, that should be
use lib "./libnet";
-- tdk
Al Hospers wrote:
: ... HOWEVER, I cannot get my
: script to find the modules.
:
: here's the initial part of the code. according to the error message it fails
: on line 4 where it cannot find the Net::FTP module.
:
: #!/usr/local/bin/perl
: use CGI qw(:all);
: use lib "/libnet/Net";
: use
NC follows:';
foreach $b (@INC) {
print '$INC[' . $i++ . "]= $b\n";
}
print "";
John W Moon
-Original Message-
From: Al Hospers [mailto:[EMAIL PROTECTED]]
Sent: June 08, 2001 14:02
To: [EMAIL PROTECTED]
Subject: using modules installed in l
hi,
I have a project that I am working on that I need to FTP some data from a
server to another server. I used Net::FTP from libnet to do it. I tested it
on my local machine & it works fine, did the job. however when tried it on
my site I found out that libnet was not installed. contacting the
h
18 matches
Mail list logo