in reply to CGI and Perl script one file, passing arguments

Dear All

Thank you for your suggestions. I tried debugging using command line and passed the arguments and the script fetched the file and stored it on the local machine.

I also pushed the arguments in @ARGV and later printed it in the web browser.

Still not able to understand the logic how to pass it to the main perl script.

This is my first attempt to use CGI with perl.

Regards
  • Comment on Re: CGI and Perl script one file, passing arguments

Replies are listed 'Best First'.
Re^2: CGI and Perl script one file, passing arguments
by poj (Abbot) on Dec 10, 2014 at 16:14 UTC
    open (IN,">", $query.".summary");

    Check the script can write to the /cgi-bin/ folder by using

    open IN,'>', $query.'.summary' or die "Can't open file $!";

    For security cgi-bin folders are normally not writeable to by the webserver.

    poj