[Chapter 3] 3.2.98 new
Author: Larry Wall, Tom Christiansen & Randal L. Schwartz
Date: 1999-07-02T01:51:33Z

#

| Chapter 3 Functions |

### 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.

3.2.97 my |  | 3.2.99 next