in reply to Re^2: A first attempt.. at OO perl
in thread A first attempt.. at OO perl
As a user of an OO module, one typically uses the package name only to invoke the new method:
my $obj = Your::Package->new(%options); $obj->do_something; $obj->do_something_other(@args);
Consider reading perltoot, or if that doesn't help you, read a book on object orientation in general (doesn't really have to be perl related).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: A first attempt.. at OO perl
by why_bird (Pilgrim) on Jul 03, 2008 at 11:10 UTC |
In Section
Meditations