On 2/28/06 8:38 AM, Michael Lackhoff wrote: > which could already be written as: > > $form = MyPersonForm->new; # $form "isa" Rose::HTML::Form > $form->params($cgi->Vars); > $form->init_fields; > $person = $form->person_from_form; > > which isn't longer or less clear than the new params_from_cgi(), IMHO.
Unfortunately, the docs say Vars() does strange things to multi-value params: "When using this, the thing you must watch out for are multivalued CGI parameters. Because a hash cannot distinguish between scalar and list context, multivalued parameters will be returned as a packed string, separated by the "\0" (null) character. You must split this packed string in order to get at the individual values. This is the convention introduced long ago by Steve Brenner in his cgi-lib.pl module for Perl version 4." Yuck :) So I guess I'll still have to roll my own solution, as simple as it maybe. -John ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object