in reply to REAL Basic Perl OOP Questions
Anyway, I was perplexed in that sub new didn’t seem to return anything,Ahh, but all subroutines automatically return the last expression evaluated, and that new evaluates the bless as the last thing, and bless happens to return the blessed object.
So, it's doing the right thing.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: REAL Basic Perl OOP Questions
by o2bwise (Scribe) on Jun 21, 2005 at 23:21 UTC | |
by merlyn (Sage) on Jun 21, 2005 at 23:29 UTC | |
by o2bwise (Scribe) on Jun 21, 2005 at 23:53 UTC |