Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Mo::coerce(3)	      User Contributed Perl Documentation	 Mo::coerce(3)

Name
       Mo::coerce - Adds the coerce feature to Mo's has

Synopsis
	   use Mo qw'coerce';
	   has name => ( coerce	=> sub { uc $_[0] } );

Description
       Adds the	coerce parameter to has, which expects a code reference, which
       is used to transform the	value to be set.

perl v5.24.1			  2016-07-06			 Mo::coerce(3)

Name | Synopsis | Description

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Mo::coerce&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help