betmatt has asked for the wisdom of the Perl Monks concerning the following question:
Does anyone here have experience of converting one to another. Python to Perl or visa versa. I would be interested in seeing examples of how these statements would translate between the two languages.try: # Runs first <code> except: # Runs if exception occurs in try block <code> else: # Executes if try block *succeeds* <code> finally: # This code *always* executes <code>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Exception clauses
by Discipulus (Canon) on Jun 06, 2019 at 09:37 UTC | |
by bliako (Abbot) on Jun 06, 2019 at 10:24 UTC | |
Re: Exception clauses
by holli (Abbot) on Jun 06, 2019 at 17:09 UTC |