I have a much better idea. Instead of trying to manually print out every line of html, use HTML::Template and seperate the html from the perl. Then you could replace the above with __output.tmpl__
<INPUT TYPE='HIDDEN' NAME='g_emplid' VALUE='<TMPL_VAR NAME="g_emplid"> +'> <INPUT TYPE='HIDDEN' NAME='g_oprid' VALUE='<TMPL_VAR NAME="g_oprid">'> <INPUT TYPE='HIDDEN' NAME='g_LogonName' VALUE='<TMPL_VAR NAME="g_Logon +3Name">'> <INPUT TYPE='HIDDEN' NAME='g_projects' VALUE='<TMPL_VAR NAME="g_projec +ts2">'> <INPUT TYPE='HIDDEN' NAME='g_projects_valid' VALUE='<TMPL_VAR NAME="g_ +projects_valid">'> <INPUT TYPE='HIDDEN' NAME='g_projects_valid' VALUE='<TMPL_VAR NAME="g_ +projects_valid">'>


__output.pl__
use HTML::Template; my $h = new HTML::Template(filename=>'output.tmpl'); $h->param ( g_emplid => $g_emplid, g_oprid => $g_oprid, g_LogonName => $g_LogonName, g_projects => $g_projects, g_projects_valid => $g_projects_valid, g_projects_valid => $g_projects_valid, ); print $h->output;

In reply to Re: Extract variables from file (split? regex? backflip?) by BUU
in thread Extract variables from file (split? regex? backflip?) by Lori713

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.