Query: template::plugin::class
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Template::Plugin::Class(3pm) User Contributed Perl Documentation Template::Plugin::Class(3pm)NAMETemplate::Plugin::Class - allow calling of class methods on arbitrary classesSYNOPSIS[% USE foo = Class('Foo') %] [% foo.bar %]DESCRIPTIONTemplate::Plugin::Class allows you to call class methods on arbitrary classes. One use for this is in Class::DBI style applications, where you may do somthing like this: [% USE cd = Class('Music::CD') %] [% FOREACH disc = cd.retrieve_all %] [% disc.artist %] - [% disc.title %] [% END %]CAVEATSYou won't be able to directly call "AUTOLOAD" or "DESTROY" methods on the remote class. This shouldn't be a huge hardship.BUGSApart from the mentioned caveat, none currently known. If you find any please contact the author.AUTHORRichard Clamp <richardc@unixbeard.net>COPYRIGHTCopyright (C) 2003, 2004, 2006 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 ALSOTemplate perl v5.10.0 2006-05-10 Template::Plugin::Class(3pm)
Similar Topics in the Unix Linux Community |
---|
Adding the individual columns of a matrix. |
Is UNIX an open source OS ? |
New UNIX and Linux History Sections |
My first PERL incarnation... Audio Oscillograph |