For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > February 2006 > can someone help with using module???









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author can someone help with using module???
Jadkit

2006-02-08, 8:53 am

Hi,

I am on a webserver which i have only FTP access. I used a
servercheck.cgi script which tell me that there is a Perl Magick module
installed on the server. it says

5.005::i686-linux::Image::Magick

then i tried to execute scripts below

--------------------------------------------------------------
#!/usr/bin/perl
use "Image::Magick";

print "Content-Type: text/html\n\n";
print "Script ok";
--------------------------------------------------------------

and

--------------------------------------------------------------
#!/usr/bin/perl
use "5.005::i686-linux::Image::Magick";

print "Content-Type: text/html\n\n";
print "Script ok";
--------------------------------------------------------------

but they just don't work. any ideas please?????

Cheers,
Jadkit.

Paul Lalli

2006-02-08, 8:53 am

Jadkit wrote:
> I am on a webserver which i have only FTP access. I used a
> servercheck.cgi script which tell me that there is a Perl Magick module
> installed on the server. it says
>
> 5.005::i686-linux::Image::Magick
>
> then i tried to execute scripts below
>
> --------------------------------------------------------------
> #!/usr/bin/perl
> use "Image::Magick";
>
> print "Content-Type: text/html\n\n";
> print "Script ok";
> --------------------------------------------------------------
>
> and
>
> --------------------------------------------------------------
> #!/usr/bin/perl
> use "5.005::i686-linux::Image::Magick";
>
> print "Content-Type: text/html\n\n";
> print "Script ok";
> --------------------------------------------------------------
>
> but they just don't work. any ideas please?????


"does not work" is not a good error description. In fact, it is the
worst of all possible error descriptions. *How* did it "not work"?
Did your computer freeze? Crash? Infinite loop? Compilation error?
Run-time error? Spontaneously combust?

In general, you don't put quotes around the name of a module.

Paul Lalli

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com