HTML::FillInForm::Lite - Fills in HTML forms with data
The document describes HTML::FillInForm version 0.01
use HTML::FillInForm::Lite; use CGI; my $q = CGI->new(); my $h = HTML::FillInForm::Lite->new(); $output = $h->fill(\$html, $q); $output = $h->fill(\@html, \%data); $output = $h->fill(\*HTML, \&get_param); $output = $h->fill('t.html', [$q, \%default]); $output = $h->fill(\$html, $q, fill_password => 0, # it is default ignore_fields => ['foo', 'bar'], # or disable_fields => [...] ignore_types => ['textarea'], target => $form_id, );
This module fills in HTML forms with Perl data, which re-implements HTML::FillInForm using regexp-based parser, not using HTML::Parser.
HTML::FillInForm
HTML::Parser
The difference of the parser makes HTML::FillInForm::Lite 2 or more times faster than HTML::FillInForm.
HTML::FillInForm::Lite
Note that this module implements the new syntax of HTML::FillInForm version 2.
Creates HTML::FillInForm::Lite processer with options.
Different from HTML::FillInForm, the fill() method ignores passwords by default.
fill()
Setting the option true, to enable passwords to be filled in.
To ignore some fields from filling.
To ignore some types from filling.
To fill in just the form identified by form_id.
Fills in source with form_data.
The options are the same as new().
new()
You can use this method as both class or instance method. However, if you make multiple calls to fill() with the same options, it is more faster to call new() before fill().
HTML::FillInForm.
Goro Fuji (藤 吾郎) <gfuji(at)cpan.org>
Copyright (c) 2008 Goro Fuji, Some rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTML::FillInForm::Lite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::FillInForm::Lite
CPAN shell
perl -MCPAN -e shell install HTML::FillInForm::Lite
For more information on module installation, please visit the detailed CPAN module installation guide.