in reply to Re: Coerce or transform with Types::Param
in thread Coerce or transform with Types::Param
Your code is far less verbose than mine too.
There are a couple of concepts that are new to me there, I've not come across of before and I haven't see a Type modified with where in that way either. I only considered where in the constructor so that is really useful.
...Really appreciate the help.my $MaybeCaption = Maybe ->of( $LongCaption ) ->plus_coercions( $EmptyStr => q{ undef } );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Coerce or transform with Types::Param
by tobyink (Canon) on Mar 21, 2021 at 20:33 UTC |