- COPYRIGHT AND LICENSE
- SEE ALSO
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 Rose::ObjectX::CAF. 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 the debug level. Default is 0.
Get/set the warnings level. Default is 0.
Get/set flags affecting the verbosity of the program.
Returns the elapsed time in seconds since object was created.
Returns $self (and data if present) via Data::Dump::dump. Useful for peering inside an object or other scalar.
Returns a SWISH::Prog::Config object based on config.
config may be a readable file name or a SWISH::Prog::Config object.
Will croak if config is neither of the above.
Peter Karman, <firstname.lastname@example.org>
Please report any bugs or feature requests to
bug-swish-prog at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SWISH-Prog. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
Copyright 2008-2009 by Peter Karman
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.