Exceptions/Catch an exception thrown in a nested call: Difference between revisions

Content deleted Content added
→‎{{header|Perl}}: Both exceptions are caught.
→‎{{header|Perl}}: Add note on catching both exceptions.
Line 1,381:
 
=={{header|Perl}}==
{{incorrect|Perl|Note: Both exceptions are caught and one is is re-raised. Ifrather this is thethan only wayone tobeing do the task then please add a note to this example; otherwise modify to not catch the second exceptioncaught.}}
<lang perl>sub foo {
foreach (0..1) {