Re: Using Fly

[email protected] Mon, 6 Sep 1999 23:18:12 +0100
Newsgroups perl.riscos
Message-ID <[email protected]>
On 6 Sep 99, at 16:28, Geoff Youngs wrote:
> > > > <big snip> Hi, I'm still going through all the stuff on Fly, I
> > > > might even understand it eventually! I have another small
> > > > problem, concerning CGI.pm As I understand, this is in the zip
> > > > file in the library directory in !Perl. If I have a line such
> > > > as:
> > > >
> > > > my $favourite = param ("flavour");
> > > >
> > > > Perl doesn't understand this and says
> > > >
> > > > undefined subroutine &main: param called at ...<snip>
> > > >
> > > > The param function should be included in CGI.pm (I think), so do
> > > > I actually need to 'install' CGI.pm somewhere, or am I missing
> > > > something (probably my brain :-) )
> > 
> > > You *are* putting "use CGI;" at the top of your script, right?

<snipped a lot of good stuff that geoff put>

You might want to try using the `object' reference... making sure 
you put "use CGI;" at the top as suggested...

try the line,

	my $favourite = cgi->param("flavour")

Works for me.
HTH

Ben