4 Replies - 1213 Views - Last Post: 25 June 2009 - 08:42 PM

#1 333OnlyHalfEvil   User is offline

  • D.I.C Addict

Reputation: 24
  • View blog
  • Posts: 674
  • Joined: 20-March 09

What's the difference?

Posted 22 June 2009 - 12:12 AM

What's the difference between Perl and Python? Why do they both have the same board?
Is This A Good Question/Topic? 0
  • +

Replies To: What's the difference?

#2 firebolt   User is offline

  • D.I.C Lover
  • member icon

Reputation: 93
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Re: What's the difference?

Posted 22 June 2009 - 12:29 AM

This could be interesting to you:
http://mail.python.o...ber/058377.html
Was This Post Helpful? 0
  • +
  • -

#3 dsherohman   User is offline

  • Perl Parson
  • member icon

Reputation: 227
  • View blog
  • Posts: 654
  • Joined: 29-March 09

Re: What's the difference?

Posted 22 June 2009 - 05:09 AM

View Post333OnlyHalfEvil, on 22 Jun, 2009 - 07:12 AM, said:

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).
Was This Post Helpful? 0
  • +
  • -

#4 chorny_cpan   User is offline

  • D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 52
  • Joined: 13-May 09

Re: What's the difference?

Posted 25 June 2009 - 04:17 AM

View Post333OnlyHalfEvil, on 21 Jun, 2009 - 11:12 PM, said:

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.
Was This Post Helpful? 0
  • +
  • -

#5 code_m   User is offline

  • D.I.C Head
  • member icon

Reputation: 24
  • View blog
  • Posts: 202
  • Joined: 21-April 09

Re: What's the difference?

Posted 25 June 2009 - 08:42 PM

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)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1