Полезная информация

Programming Perl

Programming PerlSearch this book
Previous: 3.2.97 myChapter 3
Functions
Next: 3.2.99 next
 

3.2.98 new

new CLASSNAME LIST
new CLASSNAME

There is no built-in new function. It is merely an ordinary constructor method (subroutine) defined (or inherited) by the CLASSNAME module to let you construct objects of type CLASSNAME. Most constructors are named "new", but only by convention, just to delude C++ programmers into thinking they know what's going on.


Previous: 3.2.97 myProgramming PerlNext: 3.2.99 next
3.2.97 myBook Index3.2.99 next