moosex::undeftolerant::attribute(3pm) debian man page | unix.com

Man Page: moosex::undeftolerant::attribute

Operating Environment: debian

Section: 3pm

MooseX::UndefTolerant::Attribute(3pm)			User Contributed Perl Documentation		     MooseX::UndefTolerant::Attribute(3pm)

NAME
MooseX::UndefTolerant::Attribute - Make your attribute(s) tolerant to undef intitialization
VERSION
version 0.17
SYNOPSIS
package My:Class; use Moose; use MooseX::UndefTolerant::Attribute; has 'bar' => ( traits => [ qw(MooseX::UndefTolerant::Attribute)], is => 'ro', isa => 'Num', predicate => 'has_bar' ); # Meanwhile, under the city... # Doesn't explode my $class = My::Class->new(bar => undef); $class->has_bar # False!
DESCRIPTION
Applying this trait to your attribute makes it's initialization tolerant of of undef. If you specify the value of undef to any of the attributes they will not be initialized (or will be set to the default, if applicable). Effectively behaving as if you had not provided a value at all.
AUTHOR
Cory G Watson <gphat at cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Cory G Watson. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-05-03 MooseX::UndefTolerant::Attribute(3pm)
Related Man Pages
moosex::storage::meta::attribute::donotserialize5.18(3pm) - mojave
moosex::storage::meta::attribute::trait::donotserialize5.18(3pm) - mojave
moosex::getopt::meta::attribute::nogetopt(3pm) - mojave
moosex::getopt::meta::attribute::trait(3pm) - mojave
moosex::storage::meta::attribute::trait::donotserialize(3pm) - debian
Similar Topics in the Unix Linux Community
Adding the individual columns of a matrix.
Installing Dash Shell on OS X Lion
One instance of comparing grep and awk
Find columns in a file based on header and print to new file
New UNIX and Linux History Sections