Pad-Tie
view release on metacpan or search on metacpan
lib/Pad/Tie.pm view on Meta::CPAN
Pad::Tie->new($obj, [ $personality => \@methodnames, ... ])
The list of method names is actually just an argument to the plugin. See
individual plugins and L<Pad::Tie::Plugin> for details.
Note that this is an 'optlist'; see L<Data::OptList>. The short version is
that if you don't need arguments, such as for the C<self> plugin, you don't
need to pass an explicit C<undef> value. See L</SYNOPSIS>.
More detail about methods and personalities is given above. See
L<DESCRIPTION|/DESCRIPTION>.
=head1 METHODS
Most of the time you will only need to use C<new> and C<call>, or perhaps
C<wrap>. The names for C<call> and C<wrap> are chosen deliberately to match up
with methods from L<Lexical::Persistence|Lexical::Persistence>, which this
module is build using.
=head2 new
my $pad_tie = Pad::Tie->new($obj, \@methods);
Create a new binding for the given object.
See L<DESCRIPTION|/DESCRIPTION> and L<CONFIGURATION|/CONFIGURATION>.
=head1 TODO
=over
=item * subclassing
Work out and test interactions.
=item * method auto-discovery
Provide method personality plugins for various object frameworks to avoid
having to type a bunch.
=item * more method personalities
e.g. L<Rose::Object::MakeMethods::Generic|Rose::Object::MakeMethods::Generic>'s
different kinds of hash/array accessors, a scalar that calls different methods
for FETCH and STORE (C<$url> in examples/mech.pl).
=item * more options
interface for configuring the underlying Lexical::Persistence object
=item * more documentation
examples that aren't filled with 'foo', documentation on plugins
=head1 SEE ALSO
L<Pad::Tie::Plugin>
L<Lexical::Persistence>
L<Devel::LexAlias>
L<PadWalker>
L<Data::OptList>
=head1 AUTHOR
Hans Dieter Pearcey, C<< <hdp at cpan.org> >>
=head1 BUGS
Please report any bugs or feature requests to
C<bug-pad-tie at rt.cpan.org>, or through the web interface at
L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Pad-Tie>.
I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
=head1 SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Pad::Tie
You can also look for information at:
=over 4
=item * AnnoCPAN: Annotated CPAN documentation
L<http://annocpan.org/dist/Pad-Tie>
=item * CPAN Ratings
L<http://cpanratings.perl.org/d/Pad-Tie>
=item * RT: CPAN's request tracker
L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Pad-Tie>
=item * Search CPAN
L<http://search.cpan.org/dist/Pad-Tie>
=back
=head1 ACKNOWLEDGEMENTS
Thanks to Pobox.com, who sponsored the development of this module.
=head1 COPYRIGHT & LICENSE
Copyright 2007 Hans Dieter Pearcey, all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
=cut
( run in 0.698 second using v1.01-cache-2.11-cpan-13bb782fe5a )