Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Yes - I could put it into the calling code - but how would I get Moose to force it itself - I tried this from Moose docs:$lookup usd eur gbp chf
but I get message that I am unable to to modify read-only value despite Moose docs saying that trigger can modify RO values. What is correct way to force upper case (and thus in general) 'pre-preocess' object constructor arguments? Thank-you.trigger => sub { $_[0]->code( uc( $_[0]->code ) );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pre-preprocess Moose args in constructor
by haj (Vicar) on Apr 14, 2018 at 09:28 UTC |