Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What does "use WWW::Curl::Easy;" mean

Status
Not open for further replies.

savoyesmith

Programmer
Jul 26, 2008
3
US
Hi, I am absolute Perl beginner.
I need to use cURL.
I think i wrote the script ok, but i dont even know how to invoke cURL

So i add this at top of pl file

use
This causes crash.

What does
use mean????
Is this a path. Do i need to know where cURL is installed?
If i install to A/B/C do i say
use A::B::C::Curl::Easy ???
I cannot find a tutorial that explains "use"

How do I install cURL if it isnt already?
 
well, i think remote.
My friend gave me the ftp to his website.
I see a form processed with perl.
In the perl file I want to use cURL to send the form data (for example a visitors email) to a remote service (myemma.com to be exact. They do email marketing)

The Myemma.com customer support show how to do it in PHP.
But I want to do it with Perl since the form is processed by Perl.
So I browsed around in Perl websites and found
use But it causes a problem.
Problem is I dont even know what it means?
How do I know if the website even has cURL, and how to I use the cURL module?
 
Code:
How do I know if the website even has cURL
Perl modules are individual files which are installed onto the server. Before you go any further, check if this module is actually installed on the server. If you are on shared access it may be possible to install the module locally but it is not an easy thing to do.

There are other, more conventional methods for sending emails from a Perl script but a certain amount of learning will have to take place before you could do it. There are ready made scripts out there which will do the job but you need to learn how to run them.

Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top