There maybe complications in choosing at the detailed level, so this is at an overview level.

1. Although both Perl and Python have a full range of interprocess communication and multiprocessing routines, Python's approach to threading is to provide a class with methods for managing processes in a way that I question is multi-threading. Reading the Python documentation makes my stomach churn because I feel that as comprehensive as the class looks, the authors don't really know the difference between a thread and a parallel subprocess. Perl documentation and practice make a more understandable distinction between forks and threads that tallies with what was understood by these concepts long before Perl or Python came into existence. In particular, although threads and classes seem at first sight to be incompatible techniques with Python not convincing me that this conceptual clash is even properly understood in Python land -- but Perl gets around this by allowing the programmer to define the code inside the thread in a procedural way while keeping the thread classware well under the hood and out of the way of the programmers multithreaded coding style.

2. For asynchronous (ie non-thread-style) parallel processes, Python has slightly more flexibility in the management of pipes, but broadly the languages are similar in this capacity. Python does provide thread capability but the interface is much harder to use and maintain than Perl's. BUT when using library modules, they have to be thread-safe in Perl, whereas although much more difficult to use, at least Python has no such limitation.

3. Both have message queue capabilities - But Perl's IPC::Msg module provides access to unix message queues more readily (IMO) than Python.

4. Both Perl and Python have about similar access to sendmail, but Perl's library has additional capabilities, most notably in the CGI module for example for accessing sendmail from within a webserver script.

One world, one people


In reply to Re: I want to know the problems in Perl by anonymized user 468275
in thread I want to know the problems in Perl by maheshgupta024

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.