in reply to Re: Curl and Perl
in thread Curl and Perl

Hi

I can create .pl perl script. I know the curl commands. But i want to use these both here. Since i have Curl as a extracted folder and perl installed,there should be a mechanism to write curl commands in perl(.pl file).

I want help in using curl with perl. I hope i am clear this time

So,the curl commands i have at hand should be used in the dot pl(.pl) file.So that i can execute the .pl file from command prompt.

please help me with this issue

Sai Dasika

Replies are listed 'Best First'.
Re^3: Curl and Perl
by Corion (Patriarch) on Jun 23, 2010 at 13:23 UTC

    I'm still not really clear as to what you want to do. If you want to use libcurl from Perl, see WWW::Curl. If you want to run curl as an external process, read system.

      Hi

      Yes you are right..i want to use curl with perl. I have a extracted folder of curl with me and i installed strawberry perl on my system. Something like including the curl library(the curl folder i have) in perl,so that i can use the curl commands in the .pl file i create.

      Please help me to use the curl library in perl using some include or using type statements

        Then, as I already showed, you want to use system to run curl.

Re^3: Curl and Perl
by Anonymous Monk on Feb 21, 2020 at 14:17 UTC
    I think that this response was outdated, but if it could help other perl beginners, you can try :
    $resp = qx{curl -s http://any_url}
    It will work if you have curl installed, both in linux like windows.