perl OOP

perl OOP

am 03.04.2007 11:34:32 von a

Hi
I dont understand when we declare a new in a package. It is always use
new($class, %args).
For method, ususally method($self, %args) to pass input parameter. So, we
dont use the $class and $self anyway, what is the purpose putting there?

I have read the tutorials already but still not understand.

Thanks

Re: perl OOP

am 03.04.2007 18:20:43 von Sherm Pendley

"a" writes:

> Hi

Hi. Something wrong with the answers you got in c.l.p.misc?

Please don't multi-post. If your question is relevant to multiple groups -
this one isn't - you should cross-post a single message with multiple groups
listed in the Newsgroups: header, not post multiple messages to a single
group each.

The advantage of cross- over multi-posting is that replies will by default
appear in all groups, and also that once read by someone the message will
not show up again as unread in another group.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net