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

Actually I think I had the right intuition with Python.

They use exceptions for non-fatal communications like in

https://softwareengineering.stackexchange.com/questions/112463/why-do-iterators-in-python-raise-an-exception

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

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

Replies are listed 'Best First'.
Re^7: What technical benfits perl offers over python + few more questions.
by Marshall (Canon) on Nov 15, 2021 at 22:53 UTC
    I see what you mean. I am just starting with Python. Instead of handling the exception, it appears that:
    for value in some_iterable: print(value)
    is the preferred syntax.