in reply to Re: CGI from another script
in thread CGI from another script
tmp.cgi#!/usr/bin/perl use strict; use warnings; my $id = 1; my $auth_id = 150; my $blah = `perl ./tmp.cgi id=$id auth_id=$auth_id draw=1 raw=raw`; print $blah, "\n"; exit;
I wonder if it is because the first one was a perl script run from the command line rather than a cgi from the browser?#!/usr/bin/perl use strict; use warnings; use CGI qw(:all); my $q = new CGI; my $id = $q->param("id"); my $auth_id = $q->param("auth_id"); my $draw = $q->param("draw"); my $raw = $q->param("raw"); print $id, "\n"; print $auth_id, "\n"; print $draw, "\n"; print $raw, "\n"; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: CGI from another script
by ww (Archbishop) on Sep 02, 2005 at 14:30 UTC | |
by rsiedl (Friar) on Sep 02, 2005 at 14:42 UTC |