AI::MicroStructure::Alias - Alias one structure to another
package AI::MicroStructure::bonk; use AI::MicroStructure::Alias; our @ISA = qw( AI::MicroStructure::Alias ); __PACKAGE__->init('batman'); 1; =head1 NAME AI::MicroStructure::bonk - The bonk structure =head1 DESCRIPTION This structure is just an alias of the C<batman> theme. =cut # no __DATA__ section required!
AI::MicroStructure::Alias is the base class for any structures that is simply an alias of another structure.
AI::MicroStructure::Alias
AI::MicroStructure::Alias defines a single method, init() that make aliases very easy to write (see the full example in SYNOPSIS):
init()
init() must be called when the subclass is loaded, so as to correctly load and alias the original structure.
$original is the name of the original structure we want to alias.
$original
Philippe 'BooK' Bruhat, <book@cpan.org>
<book@cpan.org>
Copyright 2006 Philippe 'BooK' Bruhat, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install AI::MicroStructure, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AI::MicroStructure
CPAN shell
perl -MCPAN -e shell install AI::MicroStructure
For more information on module installation, please visit the detailed CPAN module installation guide.