Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I checked a few articles though, and they all seem to say that 1) Python offers better error handling than Perl

It is a shame that you have not linked to these articles - not even one of them - so that we can discover in what way the authors think that Python offers better error handling. All I can do therefore is say that in all my many years of working with Perl never once have I thought "Perl's error handling could be better".

2)Functions are first class citizens in Python

Super. What does that give you that you can do with functions in Python that you cannot do with functions (subroutines) in Perl?

3)Even for the kind of reporting I am looking for, Python would be a better choice.

Again, no link so no reason why. Here, I'll say it: "Perl would be a better choice". I present as much evidence to back up this claim as you have done so far, ie. none.

Actually, I'll do better than that. Perl has CPAN and CPAN has many modules for working with accursed Excel spreadsheets should you so need - even on non-native Excel platforms. Perl is (almost entirely) backwards compatible with itself so you don't need to ask, "python2 or python3"? Perl is already installed on any O/S you might be using (except MSWin, of course).

For any given task, to choose the language which is most appropriate you must consider the key aspects of that task and then you can whittle down your choice to those languages which satisfy those requirements. Then you can dig into nuance. And finally there is the choice of which language you want to use and why. I almost always want to use Perl because (a) it has all the tools, (b) it is expressive and (c) is it (to me) intuitive. Its speed and ubiquity are just bonuses.


🦛


In reply to Re: What technical benfits perl offers over python + few more questions. by hippo
in thread What technical benfits perl offers over python + few more questions. by Anonymous Monk

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-25 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found