Perl OOP concept in real time scenario

------_=_NextPart_001_01CBB306.C6655C43
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi All



Can anyone explain the Perl OOP concept with one real time
example ? How it is useful or required in our programming life? Any link
also would be helpful .



Thanks

Sunita


------_=_NextPart_001_01CBB306.C6655C43--
Sunita Rani Pradhan [ Do, 13 Januar 2011 10:46 ] [ ID #2053128 ]

Re: Perl OOP concept in real time scenario

Hi Sunita,

On Thursday 13 Jan 2011 11:46:38 Sunita Rani Pradhan wrote:
> Hi All
>
>
>
> Can anyone explain the Perl OOP concept with one real time
> example ? How it is useful or required in our programming life? Any link
> also would be helpful .

First of all, note that I don't understand what you mean by "real time". Real
time in computing normally means that:

http://en.wikipedia.org/wiki/Real-time_computing

Otherwise, I give the motivation for OOP and other paradigms here:

http://perl-begin.org/tutorials/perl-for-newbies/part3/

You should read the introduction, but note that the rest of the tutorial has
become baroque in time, and you should see this instead:

http://perl-begin.org/topics/object-oriented/

For some examples of object-oriented code in Perl, you may wish to consult my
CPAN directory ( http://search.cpan.org/~shlomif/ ) and other modules on CPAN:

Best regards,

Shlomi Fish

--
------------------------------------------------------------ -----
Shlomi Fish http://www.shlomifish.org/
Chuck Norris/etc. Facts - http://www.shlomifish.org/humour/bits/facts/

Chuck Norris can make the statement "This statement is false" a true one.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Shlomi Fish [ Do, 13 Januar 2011 13:52 ] [ ID #2053131 ]

RE: Perl OOP concept in real time scenario

Hi Shlomi

Thanks for your help . I meant that , in what kind of scenario
we should use OOP features(in perl) ?

Thanks
Sunita

-----Original Message-----
From: Shlomi Fish [mailto:shlomif [at] iglu.org.il]
Sent: Thursday, January 13, 2011 6:22 PM
To: beginners [at] perl.org
Cc: Sunita Rani Pradhan
Subject: Re: Perl OOP concept in real time scenario

Hi Sunita,

On Thursday 13 Jan 2011 11:46:38 Sunita Rani Pradhan wrote:
> Hi All
>
>
>
> Can anyone explain the Perl OOP concept with one real time
> example ? How it is useful or required in our programming life? Any
link
> also would be helpful .

First of all, note that I don't understand what you mean by "real time".
Real
time in computing normally means that:

http://en.wikipedia.org/wiki/Real-time_computing

Otherwise, I give the motivation for OOP and other paradigms here:

http://perl-begin.org/tutorials/perl-for-newbies/part3/

You should read the introduction, but note that the rest of the tutorial
has
become baroque in time, and you should see this instead:

http://perl-begin.org/topics/object-oriented/

For some examples of object-oriented code in Perl, you may wish to
consult my
CPAN directory ( http://search.cpan.org/~shlomif/ ) and other modules on
CPAN:

Best regards,

Shlomi Fish

--
------------------------------------------------------------ -----
Shlomi Fish http://www.shlomifish.org/
Chuck Norris/etc. Facts - http://www.shlomifish.org/humour/bits/facts/

Chuck Norris can make the statement "This statement is false" a true
one.

Please reply to list if it's a mailing list post - http://shlom.in/reply
..

--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Sunita Rani Pradhan [ Do, 13 Januar 2011 13:55 ] [ ID #2053132 ]

Re: Perl OOP concept in real time scenario

On Thursday 13 Jan 2011 14:55:10 Sunita Rani Pradhan wrote:
> Hi Shlomi
>
> Thanks for your help . I meant that , in what kind of scenario
> we should use OOP features(in perl) ?

Well, often you need to create more than one instance of something. In that
case, consider creating a class and instantiating objects of it. OOP is also
useful for standardising the interface of your project, and for shortening the
amount of code needed to delegate records from one subroutine to another and
to export and import functions.

Inheritance and role composition give you powerful tools to reuse code and
over-ride parts of it.

You may wish to read these parts of "The Art of Unix Programming" for some
discussion of OOP:

* http://www.faqs.org/docs/artu/unix_and_oo.html

* http://www.faqs.org/docs/artu/ch14s04.html

However, I feel that OOP as it is implemented in C++ leaves a lot to be
desired, and that "C++ supports Object Oriented Programming roughly as much as
COBOL supports Functional Programming.", and that the way Perl implemented OOP
is much better than C++'s.

Please read the rest of the resources I've linked to (and other resources
online and offline). I'm not saying that you should always use OOP, but it's
important to know, and I found it of great utility.

Regards,

Shlomi Fish


--
------------------------------------------------------------ -----
Shlomi Fish http://www.shlomifish.org/
Stop Using MSIE - http://www.shlomifish.org/no-ie/

Chuck Norris can make the statement "This statement is false" a true one.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Shlomi Fish [ Do, 13 Januar 2011 16:02 ] [ ID #2053135 ]
Perl » gmane.comp.lang.perl.beginners » Perl OOP concept in real time scenario

Vorheriges Thema: Moving through tree's using LWP
Nächstes Thema: Perl... Logging to console and Log file