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

3.03

Used within classgen.

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.
In the blessing section of the generated new() method:

Nothing special. Just use Perl5.

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

No bugs known.

Please refer to classgen.

perldoc classgen

Name: Michael Schlueter email: mschlue@cpan.org

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.