http://qs1969.pair.com?node_id=502351

JaredF has asked for the wisdom of the Perl Monks concerning the following question:

I'm having a frustrating time passing a single parameter between two perl .cgi programs (cgi1.cgi & cgi2.cgi). In particular, perl complains like this: Can't call method "param" on an undefined value at C:\Program Files\OptiPerl\Webroot\cgi-bin\cgi2.cgi line 5.
What am I ignorant of (this time)?
Jared
##############CGI1.CGI############### #!/usr/local/bin/perl use CGI qw(:all); print header; print "now in cgi1.cgi<BR>"; print q(<A HREF="./cgi2.cgi?i=99">go to cgi2</A>); ##############CGI2.CGI############### #!/usr/local/bin/perl use CGI qw(:all); print header; print "in cgi2.cgi<BR>"; $i = $query->param('i'); print $i;