Exception handling syntax: Difference between revisions

Content deleted Content added
[[Perl]]: <source>
Line 263:
 
===[[Perl]]===
<source lang=perl>
<pre>
eval {
# Code that could throw an exception (using 'die')
Line 270:
# Handle exception here. (The exception object is in $@)
}
</presource>
 
=== [[PHP]] ===