html - CGI table with perl -



html - CGI table with perl -

i trying build login form cgi, using perl.

sub show_login_form{ homecoming div ({-id =>'loginformdiv'}), start_form, "\n", cgi->start_table, "\n", cgi->end_table, "\n", end_form, "\n", div, "\n"; }

i wondering why don't need add together cgi-> before start_form if don't include before start_table , end_table, "start_table" , "end_table" printed strings?

thank help.

why can utilize subroutines?

because importing them using next utilize statement:

use cgi qw(:standard);

as documented in cgi - using function oriented interface, import "standard" features, 'html2', 'html3', 'html4', 'ssl', 'form' , 'cgi'.

but not include table methods.

to them too, can modify utilize statement following:

use cgi qw(:standard *table); why removing cgi-> print start_table string?

because unwisely not have use strict turned on.

if had, would've gotten next error:

bareword "start_table" not allowed while "strict subs"

html forms perl cgi

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

java - Parsing XML, skip certain tags -

c# - ASP.NET MVC Sequence contains no matching element -