in reply to Problem retrieving data using WWW::Curl

It's not CGI script. Try running it from the command line.

  • Comment on Re: Problem retrieving data using WWW::Curl

Replies are listed 'Best First'.
Re^2: Problem retrieving data using WWW::Curl
by gizmo2 (Initiate) on Jun 13, 2005 at 13:12 UTC
    hi if it's not a cgi script do i need to give it .cgi extention at all? and how shoud i call this? with what function? or does it just run?
      You call it as every perl script.
      bash> perl yourscriptfile
      Or, if the the script includes a shebang-line (#!/usr/bin/perl), make it executable via chmod and
      bash> yourscriptfile
      The extension is normally just important for the webserver, and even that is a configuration issue.

      On windows the extension is more important, because there the shebang line has no influence on which perl is used. There normally the extension ".pl" is associated with perl.
      C:\> yourscript.pl
      However, the first way with explicitly calling the perl interpreter works on both systems.


      holli, /regexed monk/