Damon,

Thanks for such a quick reply. I recently started an internship and am seeing 
how learning Perl would be a valuable part of my toolset. I am new to OOP 
(having had some previous Java training) and would like to start out on the 
right track. I understand the whole dog is a animal and a cat is as well so 
they share traits that can be modeled in a separate class, I just get tied up 
when actually trying to work with real world examples. Does the moose page 
provide an OOP conceptual overview as well; if not does anyone know where to 
find one?

Thanks,
Jeffrey

-----Original Message-----
From: Damon Allen Davison [mailto:allo...@gmail.com]
Sent: Wednesday, March 24, 2010 8:37 AM
To: Pry, Jeffrey
Subject: Re: Object Oriented

On Wed, Mar 24, 2010 at 12:09 PM, Pry, Jeffrey <jeffrey....@sig.com> wrote:
> Does anyone know of good resource to learn object oriented Perl? Also, can 
> Perl be considered truly object oriented?

Hi Jeffrey,

There are a couple of ways of doing object oriented (OO) programming
in Perl. Are you coming from another OO language, or are you trying to
learn OO through Perl?

If you goal is to write new code, I would recommend having a look at
Moose::Manual on CPAN for the most modern approach to OO in Perl. It's
also easier to learn and lighter on the typing, as well as being at
the core of cool things like the programming framework Catalyst.

http://search.cpan.org/~flora/Moose-0.99/lib/Moose/Manual.pod

If you will have to be maintaining OO code that doesn't use Moose,
then I recommend the perlboot and perltoot tutorials you can access
via perldoc at the command line (perldoc perlboot). If you'd like to
buy a book, I think Damian Conway's "Object-Oriented Perl" is the best
and most comprehensive text on the topic--just keep in mind that
things have moved on a bit since its last revision. His explanations
about OO in Perl are written with a view towards understanding OO and
then understanding Perl's implementation of OO.

http://search.cpan.org/~dapm/perl-5.10.1/pod/perlboot.pod

http://www.manning.com/conway/

There is also Randal Schwartz' "Learning Perl Objects, References, and
Modules", which is targeted at intermediate users of Perl.

http://oreilly.com/catalog/9780596004781

Perl allows you to choose to write OO code, but unlike some other
popular languages, it doesn't force you to write OO code. Perl
programmers tend to like to have choices, which can sometimes be
confusing to beginners.

Best,

Damon

--
Damon Allen Davison
http://allolex.net
http://musicindustryrules.com
http://thegannet.net

IMPORTANT: The information contained in this email and/or its attachments is 
confidential. If you are not the intended recipient, please notify the sender 
immediately by reply and immediately delete this message and all its 
attachments. Any review, use, reproduction, disclosure or dissemination of this 
message or any attachment by an unintended recipient is strictly prohibited. 
Neither this message nor any attachment is intended as or should be construed 
as an offer, solicitation or recommendation to buy or sell any security or 
other financial instrument. Neither the sender, his or her employer nor any of 
their respective affiliates makes any warranties as to the completeness or 
accuracy of any of the information contained herein or that this message or any 
of its attachments is free of viruses.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to