Re: CGI.pm

[prev] [thread] [next] [lurker] [Date index for 2006/06/27]

From: peter (Peter da Silva)
Subject: Re: CGI.pm
Date: 20:02 on 27 Jun 2006
My Tcl form generator has the same "bug"!

>   print hidden('field_name', $field_value);

	puts [hidden "field_name" $field_value]

Which is equivalent to:

	puts [tag input type hidden name "field_name" value "$field_value"]

Which produces:

	<input type=hidden name='field_name' value='$field_value'>

>   print hidden(
>       -name     => 'field_name',
>       -default  => $field_value,
>       -override => 1,
>   );

Well, hmmm...

	puts [hidden "field_name" $field_value override 1]
==>	<input type=hidden name="field_name" value="$field_value" override=1>

Can you write the Perl similarly?

	print hidden('field_name', "$field_value", -override => 1);

Or is this really Perl hate?

Generated at 21:00 on 05 Jul 2006 by mariachi 0.52