Fellow Monasterians:

I'm trying to learn to use more modules, but not getting HTML::FillInForm. I have been using HTML::Template for some time, but want to refine my methods further. Here are my specific questions:

1. what is 'fobject'? and can it be called by any other name?

2. How does the $output get 'enacted'? I.e., how do I get from my Perl to my .tmpl form?

3. What else am I missing here?

PERL:

my $query = new CGI; $query -> param("123 Main Street"); my $html = "../form.html"; my $template = HTML::Template->new(filename => '../form.tmpl'); my $fif = new HTML::FillInForm; my $output = $fif->fill(scalarref => \$html, fobject => $query); print "Content-type: text/html\n\n"; print $template->output();

HTML:

<form action="cgi-bin/fill.pl" method="post"> <input type="text" name="address" size="30" /> <input type="submit" /> </form>

Thanks!

Update: Please see my findings, which are under the review of the HTML::FillInForm module itself.


—Brad
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot

In reply to Need help understanding HTML::FillInForm by bradcathey

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.