Currently ::FillInForm has a syntax like this:

 my $filled_html = $self->fill_form($html, $data);

It just came up on the DFV list where someone had a case for using
the source of a run mode for the $html.

The 'use case' was wanting to have some functionaltiy like "ValidateRM",
but without using DFV. 

Now that would look like this:

 # ..assuming my reference syntax works. 
 my $filled_html = $self->fill_form( \$self->other_run_mode , $data);


So how about this shortcut? 

 my $filled_html = $self->fill_form( 'other_run_mode' , $data);


[ thinks ] 

Too magical ?

We would need to handle 'other_run_mode' returning a scalar or
scalarref. Easy enough.

    Mark


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to