in reply to Re: perl/linux passing form variables from command line
in thread perl/linux passing form variables from command line

Hi Dave,
actually I own my own server and want to go to the command line and type perl myscript.pl {pass form variable}
-Paul
  • Comment on Re: Re: perl/linux passing form variables from command line

Replies are listed 'Best First'.
Re: Re: Re: perl/linux passing form variables from command line
by davido (Cardinal) on Oct 24, 2003 at 04:30 UTC
    actually I own my own server and want to go to the command line and type perl myscript.pl {pass form variable}

    Yes, and since your original question mentioned passing form data from the command line I naturally understand that to mean that you have a CGI script you want to run from the command line (possibly for debugging purposes to find out why it's hanging peoples' browsers). And if you are using: 'use CGI;' in myscript.pl, then you just do what my previous answer suggested: invoke the script from the command line with each form variable enumerated on the command line as key="value". Your script does use CGI.pm, right? If so, my previous advice was accurate whether you own your own server or use someone else's.


    Dave


    "If I had my life to do over again, I'd be a plumber." -- Albert Einstein
Re: Re: Re: perl/linux passing form variables from command line
by Roger (Parson) on Oct 24, 2003 at 04:30 UTC
    actually I own my own server

    I am confused. Do you mean you wrote your own CGI parser?