Jonathan Orlev wrote:
Hello everybody,


I don't have knowledge of Perl nor do I know Python.


I have experience with Bash scripting, Windows Batch ("Eichs") and VBScript.


My question is this:


I need to learn some scripting language for mostly, but not only, administrative tasks and other automation programs.


Perl, Python, (and Ruby?) are the obvious candidates.


I think I know what makes Python better than Perl.


But what really want to know is this:


In what things/aspects does Perl better than Python?


Does it have some advantages over Python? When should I choose Perl over Python? (language-wize, ignore any "external" issues such as availability, previous familiarity with the langs, performance, the need to maintain existing code, etc').


Do you think Python is better than Perl in every aspect, so one should always learn Python and not Perl?


I am asking it here because many of you probably have knowledge and experience with both languages, and since you prefer Python, you are probably more aware to Perl 's advantages and strengths over Python (and not only vice versa).


ThanQ,


Jonathan Orlev


why do you think "you all preffer python"? i don't - i'm the perl troll who joined here because i started using python as a hobby.

from the little i managed to play with python - it is far easier to use it to develop general applications - because the objects in python make sense, while in perl they are designed as a kludge. writing a checkers game in python felt quite intuitive - i wouldn't have tried doing the same thing in perl.

however, for automating programs, for parsing texts and for administrative tasks - perl has the edge. the code just almost "writes itself", and there are many CPAN modules (read: standard library of modules) to add support for many features that are needed during such tasks - i found myself using many such CPAN modules in various situations - sometimes those that came with the operating system's perl distribution - and sometimes using others, for more specific tasks.

--guy

לענות