SWISH::Prog::Class - base class for SWISH::Prog classes
package My::Class; use base qw( SWISH::Prog::Class ); 1; # see METHODS for what you get for free
SWISH::Prog::Class is a subclass of Class::Accessor::Fast. It's a base class useful for making simple accessor/mutator methods. SWISH::Prog::Class implements some additional methods and features useful for SWISH::Prog projects.
Constructor. Returns a new object. May take a hash or hashref as params.
Override init() in your subclass to perform object maintenance at construction time. Called by new().
Get/set flags affecting the verbosity of the program.
Returns the elapsed time in seconds since object was created.
Returns $self or data (if present) via Data::Dump::dump. Useful for peering inside an object or other scalar.
Peter Karman, <perl@peknet.com>
Copyright 2008 by Peter Karman
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install SWISH::Prog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SWISH::Prog
CPAN shell
perl -MCPAN -e shell install SWISH::Prog
For more information on module installation, please visit the detailed CPAN module installation guide.