[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] relating to ReadParse routine...



At 08.13 10/29/97, David A. Barro wrote:
>   use CGI;
>   &ReadParse(*input);

>   When I run the CGI in MacPerl, I get this error:
>
>   # Undefined subroutine &main::ReadParse called.
>   File 'Columbia HD:WebSTAR 2.1:asgt1.cgi'; Line 4
>
>   I looked at the code in CGI.pm (as if I'd know what
>   it was doing) and I definitely found ReadParse in there.

You want:

        use CGI qw(:cgi-lib);

CGI.pm by default only exports a minimum number of methods.  You have to explicitly ask for the methods you want.  See the CGI.pm docs for more info.

If you want "all" the methods, you can call:

        use CGI qw(:all :cgi-lib);

Since ":all" does not include the cgi-lib methods, you have to ask for those explicitly here, too.

--
Chris Nandor               pudge@pobox.com           http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==                    MacPerl: Power and Ease                     ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch