On Tue, 31 Jul 2001, Brett W. McCoy wrote:
> On Tue, 31 Jul 2001, Greg Matheson wrote:
> > #!/usr/local/bin/perl -w
> > use CGI;
> > # set a parameter and save it in a file
> > open (OUT,">/home/greg/test.out") or die "No open greg/test.out: $!";
> > $p = new CGI;
> > $p->param(-name=>'ID',-value=>'23423456');
> > $p->save(OUT);
> > close OUT;
> > # reopen for reading
> > open (IN,"/home/greg/test.out") or die "No params from test.out: $!\n";
> > $q = new CGI;
> Is this code exactly the same that you are running? Because you are not
> attaching the new CGI object to a file here (should be $q = new CGI(IN):,
> right?)
Ooops. Big loss of credibility. I must have dropped it out when I
was cutting back the working verison to the failing version.
You can confirm in the output from the debugger that I ahd it as:
$q = new CGI(IN);
Thanks.
--
Greg Matheson Autonomous language learning:
Chinmin College, My next project after overseeing
Taiwan laborers become athletes.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]