in reply to Re: Taking Variable from Form Entry Using CGI
in thread Taking Variable from Form Entry Using CGI

Thanks for the reply. Unfortunately, I get the following error:
Can't locate HTML/TokeParser/Simple.pm in @INC (@INC contains: C:/Prog +ram Files/xampp/perl/site/lib/ C:/Program Files/xampp/perl/lib C:/Pro +gram Files/xampp/perl/site/lib . C:/Program Files/xampp/apache) at (e +val 76) line 19. BEGIN failed--compilation aborted at (eval 76) line +19. ,
But, when I go to ppm in activestate it says I have installed this module. Any suggestions?

Replies are listed 'Best First'.
Re^3: Taking Variable from Form Entry Using CGI
by shmem (Chancellor) on Jul 02, 2006 at 15:36 UTC
    The CGI.pm included with the perl core doesn't use HTML::TokeParser::Simple (at my unix box, that is - dunno of windows). It must be pulled in somewhere else. Use the search facility of the windows explorer to identify that file. If you just happen to use CGI, check the location of CGI like so
    print STDERR $INC{'CGI'}."\n";
    anywhere in your cgi file, and check the apache error_log. Many modules have a Package::whatever::CGI, but you should be using the core CGI.pm, not Package/whatever/CGI.pm.

    HTH,
    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
Re^3: Taking Variable from Form Entry Using CGI
by davido (Cardinal) on Jul 02, 2006 at 16:29 UTC

    At the command prompt type the following:

    perl -MCGI -e "print $CGI::VERSION;"

    ...and then tell us what output you get. Do you still get that HTML::TokeParser error? If not, then the error has nothing to do with your use of CGI. If you do, I'm perplexed. ;)


    Dave