School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,355 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,945 people online right now. Registration is fast and FREE... Join Now!




What's the difference?

 

What's the difference?

333OnlyHalfEvil

21 Jun, 2009 - 11:12 PM
Post #1

D.I.C Addict
****

Joined: 19 Mar, 2009
Posts: 540



Thanked: 18 times
My Contributions
What's the difference between Perl and Python? Why do they both have the same board?

User is offlineProfile CardPM
+Quote Post


firebolt

RE: What's The Difference?

21 Jun, 2009 - 11:29 PM
Post #2

D.I.C Lover
Group Icon

Joined: 20 Feb, 2009
Posts: 5,463



Thanked: 75 times
Dream Kudos: 1675
My Contributions
This could be interesting to you:
http://mail.python.org/pipermail/tutor/200...ber/058377.html

User is offlineProfile CardPM
+Quote Post

dsherohman

RE: What's The Difference?

22 Jun, 2009 - 04:09 AM
Post #3

D.I.C Head
**

Joined: 29 Mar, 2009
Posts: 184



Thanked: 35 times
My Contributions
QUOTE(333OnlyHalfEvil @ 22 Jun, 2009 - 07:12 AM) *

Why do they both have the same board?

That is a very good question and, personally, I'd like to either see them each given their own board or for the community to adopt a standard of always mentioning which of the two languages a topic relates to. I just come here to help people out with Perl problems, but it's often impossible to determine from the subject lines whether someone has asked a Perl question (which I can help with) or a Python question (which I can't).
User is offlineProfile CardPM
+Quote Post

chorny_cpan

RE: What's The Difference?

25 Jun, 2009 - 03:17 AM
Post #4

New D.I.C Head
Group Icon

Joined: 13 May, 2009
Posts: 35


Dream Kudos: 25
My Contributions
QUOTE(333OnlyHalfEvil @ 21 Jun, 2009 - 11:12 PM) *

What's the difference between Perl and Python?


Both are dynamic languages and have similar OOP, because Perl got OOP from Python (you can get better OOP with roles in Perl with Moose and MooseX::Declare).

Perl's idea is a democracy, you can write you programs how you find convenient (in community, style should be enforced with perltidy and Perl::Critic. Python's idea is corporative - there is only one way to write everything, whether it is good or not. Perl is more closer to C and JSON, Python - to YAML. Python is less oriented toward stability (both as language and libraries, see for ex. last paragraph here: http://perlmonks.org/?node_id=640264 ).

Both languages are experiencing redesign. Python 3 took 10 years. Perl 6 is more vast redesign (it is really a new language), so it already lasts 9 years and it is still not finished, maybe will be also finished in 10 years.

Both languages are using iterators, in Perl they are implicit, in Python - explicit.

In Python you need to do code formatting manually, in Perl you can get it automatically.

Both languages has code libraries, Perl's is larger and better.

User is offlineProfile CardPM
+Quote Post

code_m

RE: What's The Difference?

25 Jun, 2009 - 07:42 PM
Post #5

D.I.C Head
**

Joined: 21 Apr, 2009
Posts: 118



Thanked: 8 times
My Contributions
QUOTE
Both languages has code libraries, Perl's is larger and better.


I'm not so sure about this, python is well over the 100,000 mark in third party libs (and even Python3 is being shipped with over 100 packages)
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 07:29PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month