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/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.