in reply to Re^3: Proper use of HTML::Extract for extracting
in thread Proper use of HTML::Form for exctracting

Are you expecting to see the text you typed into the input box from this page ?

<!DOCTYPE html> <html> <head> <title>Title</title> </head> <body> <form name="MyForm" action="/cgi-bin/ex.cgi",method="post",id="f1"> <input type="text" name="textfield"> </form> </body> </html>

Why don't you want to use the CGI module ?

poj

Replies are listed 'Best First'.
Re^5: Proper use of HTML::Extract for extracting
by bachoA4o (Sexton) on Aug 27, 2018 at 15:57 UTC
    Yes ,that's what I want to do. I didn't use CGI.pm because i thought it's not being used anymore (correct me if i'm wrong i'm new in perl)
      i thought it's not being used anymore

      It's no longer a core module since version v5.22. If you are just parsing form parameters take a look at CGI::Simple.

      #!/usr/bin/perl use strict; use warnings; use CGI::Simple; my $q = CGI::Simple->new; print "Content-type: text/html\n\n"; print "<html><body>\n"; print $q->param('textfield'); print"</html></body>";
      poj
        Thank you ! That solved my problem , I was googling for 2 days and couldn't find a solution . Great community forum :)