Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: What technical benfits perl offers over python + few more questions.

by ikegami (Patriarch)
on Nov 16, 2021 at 17:30 UTC ( [id://11138904]=note: print w/replies, xml ) Need Help??


in reply to Re^4: What technical benfits perl offers over python + few more questions.
in thread What technical benfits perl offers over python + few more questions.

ok, so you found an exception. Well, kinda. There's no IO library function that corresponds to division.

Anyway, the point stands: Where other languages might use exception, Perl primarily returns false on error.

Update: Clearer wording

  • Comment on Re^5: What technical benfits perl offers over python + few more questions.

Replies are listed 'Best First'.
Re^6: What technical benfits perl offers over python + few more questions.
by LanX (Saint) on Nov 16, 2021 at 22:29 UTC
    So you were only talking about IO and meant the lack of default to autodie?

    Wasn't obvious to me.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

      Of course you can create your own subs that throws exceptions, like autodie does. I don't know why you bring that up. I didn't talk about libraries at all except to say that Perl can throw exceptions.

        > I don't know why you bring that up.

        because I didn't understand why you said

        > > > > > Differences: Perl operators don't throw exceptions,

        never mind! :)

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11138904]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (1)
As of 2024-04-16 19:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found