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>
In reply to Exception clauses by betmatt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |