On 4/20/00 at 1:09 PM, s6613535@mail.milwaukee.k12.wi.us (Christopher Swope) wrote: > If I am indeed right, then I would like to know how one reccomends > testing a CGI script from MacPerl, without going through the server. > Also, once I have it loaded in the cgi-bin of a server application > directory, do I have to log in to my own domain, or can I just do an > open-->file-->(whatever the form name would be) option. > > If you use the CGI module in your script, then if it is called from the command line (or in the case of MacPerl, RunScript) it works in an interactive command line mode. You must enter the variables that you want to pass into the script like this (the example script merely echoes the input parameter values, when done entering name/value pairs hit Control-D, I show perl responses on lines with '>'): >(offline mode: enter name=value pairs on the keyboard) foo=fooval bar=barval >Content-type: text/html > 'fooval'<br> >'barval'<br>' This little tidbit of information is available in the book MacPerl: Power and Ease, page 237. Don -- "Who's the king? Kopechke's the king..." -- Dan Ackroyd for ft.com # ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org