NAME

Class::Accessor::Lvalue::Fast - create simplified Lvalue accessors

SYNOPSIS

package Foo;
use base qw( Class::Accessor::Lvalue::Fast );
__PACKAGE__->mk_accessors(qw( bar ))

my $foo = Foo->new;
$foo->bar = 42;
print $foo->bar; # prints 42

DESCRIPTION

This module subclassess Class::Accessor::Fast in order to provide lvalue accessors.

IMPLEMENTATION NOTES

You may have noted that this accessor-maker only comes in a ::Fast variant. This is because the non-fast variant would use an indirection through ->get and ->set methods - I couldn't at the time of writing see a way to make that lvaluable.

If you have a suggestion for that, I'd like to hear from you.

AUTHOR

Richard Clamp <richardc@unixbeard.net>

COPYRIGHT

Copyright (C) 2003 Richard Clamp. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Class::Accessor::Fast, Want