Class-Declare
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
}
}
}
# create an anonymous hash reference for this object
my $ref = \%hash;
my ( $key ) = ( $ref =~ m#0x([a-f\d]+)#o );
$__OBJECTS__{ $key } = $ref;
# create the new object (applying the index offset)
my $obj = bless \$key => $class;
# if there were any arguments passed, then these will be used to
# set the parameters for this object
# NB: - only public attributes may be set this way
# - need to examine every class in the @ISA hierarchy
# - may override 'public attributes' with 'new' list in declare()
my $default = sub {
( defined $__NEW__{ $_[0] } )
? @{ $__NEW__{ $_[0] } }
: map { @{ $_ } }
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.431 second using v1.00-cache-2.02-grep-82fe00e-cpan-a086c87fca4 )