1Class::Accessor::Fast(3U)ser Contributed Perl DocumentatiColnass::Accessor::Fast(3)
2
3
4

NAME

6       Class::Accessor::Fast - Faster, but less expandable, accessors
7

SYNOPSIS

9         package Foo;
10         use base qw(Class::Accessor::Fast);
11
12         # The rest is the same as Class::Accessor but without set() and get().
13

DESCRIPTION

15       This is a faster but less expandable version of Class::Accessor.
16       Class::Accessor's generated accessors require two method calls to
17       accompish their task (one for the accessor, another for get() or
18       set()).  Class::Accessor::Fast eliminates calling set()/get() and does
19       the access itself, resulting in a somewhat faster accessor.
20
21       The downside is that you can't easily alter the behavior of your acces‐
22       sors, nor can your subclasses.  Of course, should you need this later,
23       you can always swap out Class::Accessor::Fast for Class::Accessor.
24
25       Read the documentation for Class::Accessor for more info.
26

EFFICIENCY

28       "EFFICIENCY" in Class::Accessor for an efficiency comparison.
29

AUTHORS

31       Copyright 2007 Marty Pauley <marty+perl@kasei.com>
32
33       This program is free software; you can redistribute it and/or modify it
34       under the same terms as Perl itself.  That means either (a) the GNU
35       General Public License or (b) the Artistic License.
36
37       ORIGINAL AUTHOR
38
39       Michael G Schwern <schwern@pobox.com>
40

SEE ALSO

42       Class::Accessor
43
44
45
46perl v5.8.8                       2007-07-11          Class::Accessor::Fast(3)
Impressum