New.pm - Creates the new method for classes generated by classgen.


NAME

New.pm - Creates the new() method for classes generated by classgen.


VERSION

3.03


SYNOPSIS

Used within classgen.


DESCRIPTION

The main purpose of New.pm is to write the new() method for a class generated by classgen. It provides code to derive local instance variables with 'my' for all specified instance variables. It provides code to store them within an anonymous hash (only way in the current version). Finally, this hash is blessed into the desired class.

Methods generated by New.pm

In the blessing section of the generated new() method:


ENVIRONMENT

Nothing special. Just use Perl5.


DIAGNOSTICS

There is no special diagnostics. New.pm is used within classgen which is called with the -w option.


BUGS

No bugs known.


FILES

Please refer to classgen.


SEE ALSO

perldoc classgen


AUTHOR

Name: Michael Schlueter email: mschlue@cpan.org


COPYRIGHT

Copyright (c) 2000, Michael Schlueter. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.