Class::Classgen::New

Class::Classgen::New is a Perl module that creates the new() method for classes generated by classgen.
Download

Class::Classgen::New Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Michael Schlueter
  • Publisher web site:
  • http://search.cpan.org/~mschlue/Class-Classgen-classgen-3.03/New.pm

Class::Classgen::New Tags


Class::Classgen::New Description

Class::Classgen::New is a Perl module that creates the new() method for classes generated by classgen. Class::Classgen::New is a Perl module that creates the new() method for classes generated by classgen.SYNOPSISUsed 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.Methods generated by New.pmIn the blessing section of the generated new() method:inherit_from(): copies the entries of the blessed {} from the base class into the blessed {} of the derived class.ENVIRONMENTNothing special. Just use Perl5.DIAGNOSTICSThere is no special diagnostics. New.pm is used within classgen which is called with the -w option. Requirements: · Perl


Class::Classgen::New Related Software