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

Thank you ! This helped a lot. But it returns the whole content of the web page. I've tried to change tagname=body to tagname=form but it only returns blank page
  • Comment on Re^3: Proper use of HTML::Extract for extracting

Replies are listed 'Best First'.
Re^4: Proper use of HTML::Extract for extracting
by poj (Abbot) on Aug 27, 2018 at 14:56 UTC

    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
      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
Re^4: Proper use of HTML::Extract for extracting
by marto (Cardinal) on Aug 27, 2018 at 14:51 UTC

    there is no form tag on perlsphere.net.