On Fri, Oct 22, 2010 at 08:05:04PM -0400, Ricardo Signes wrote:
> The code is in rfc/assert_coerce, and I am giving it a +1 for merging as a
> small, useful method built entirely in terms of existing features.
+1. Now I can easily coerce crappy user input via:
use Moose 1.18;
my $cleaned_data =
MyApp::Types::TypeName->assert_coerce($crappy_user_input);
...where TypeName is declared with MooseX::Types.
--
"The graveyards are full of indispensible men." - Charles de Gaulle
. . . . .
Karen Etheridge, [email protected] GCS C+++$ USL+++$ P+++$ w--- M++
http://etheridge.ca/ PS++ PE-- b++ DI++++ e++ h(-)