NAME
AutoCode::AccessorMaker -- making the accessors in the traditional way.
SYNOPSIS
use AutoCode::AccessMaker (
'$' => [qw(first_name sex)],
'@' => ['alias', ['child', 'children']
);
AutoCode::AccessorMaker->make_scalar_accessor('last_name', __PACKAGE__);
# If the second argument is omitted, the caller is regarded as default
AutoCode::AccessorMaker->make_array_accessor([qw(child children)]);
DESCRIPTION
This module is to save the developers to type the same code of accessor day in and day out.
There are two non-exclusive ways to generate the accessors for a module.
- 1 using import method
-
'import' method is special for Perl module. It is called when the module get used, like Exporter. And the arguments listed behind the module name are passed into import method.
This import method requests a hash with limited keys as '$', '@'. The values in the argument hash are the array reference.
AUTHOR
Juguang Xiao, juguang at tll.org.sg
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 36:
You forgot a '=back' before '=head1'