in reply to Puzzling CGI behavior

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.