Your question has been answered in a sufficient manner, but I'd just like to show you something else as well. It's nice if a person picks either the CGI routine or the hand-done routine. What I mean is that you use CGI for outputting headers and even the opening html tag, but then you do the actual page by hand, not using the tools provided by CGI.pm. The one thing I noticed on a once-through through your script is the the row with the submit button is invalid html -> you have a total of 3 columns in this row, while the two preceeding rows have only 2 :) So here's the program, quickly redone to completely use CGI. Untested, but I think I matched all those parentheses and curly braces :)

#!/usr/bin/perl -w use strict; use CGI qw/:standard :cgi-lib/; my $I = Vars; print header(), start_html('Example Page'), start_form(), strong('Web Object'), table( Tr( td( {align=>'right'}, 'Template' ), td( textfield({ name => 'template' }) ) ), Tr( td( {align=>'right'}, 'Minscale' ), td( textfield({ name => 'minscale' }) ) ), Tr( td( {colspan=>2}, submit({ value => 'submit' }) ) ) ), end_form(), pre( qq{TEMPLATE "$I->{'template'}"\nMINSCALE "$I->{'minscale'}"} +), end_html();


      C:\>shutdown -s
      >> Could not shut down computer:
      >> Microsoft is logged in remotely.
    


In reply to Re: Puzzling CGI behavior by Coruscate
in thread Puzzling CGI behavior by punkish

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.