Mark Stosberg wrote:
> 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);
That should work since according to the docs for CAP::FiF -b
$html must be a scalarref.
So there shouldn't be any confusion.
> Too magical ?
I don't think it's too magical. This is essentially what ::ValidateRM
does to right?
--
Michael Peters
Developer
Plus Three, LP
---------------------------------------------------------------------
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.