Have a look at perltoot and into OO Tutorials in the Tutorials section of the monastery.
What you need is a constructor that uses the bless function together with the class name.
You can obtain an object's class name using the ref-function.
Cheers, Sören
In reply to Re: how to create instances of classes ....
by Happy-the-monk
in thread how to create instances of classes ....
by Khatri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |