Author: cotto
Date: Sat Sep  6 15:52:59 2008
New Revision: 30838

Modified:
   trunk/docs/pdds/pdd23_exceptions.pod

Log:
[pdd] make the exception-throwing example in pdd23 work


Modified: trunk/docs/pdds/pdd23_exceptions.pod
==============================================================================
--- trunk/docs/pdds/pdd23_exceptions.pod        (original)
+++ trunk/docs/pdds/pdd23_exceptions.pod        Sat Sep  6 15:52:59 2008
@@ -170,7 +170,7 @@
 determined by the severity of the exception.
 
 =item 6
-Otherwise terminate the program like C<die>. 
+Otherwise terminate the program like C<die>.
 
 =back
 
@@ -365,10 +365,8 @@
 
   $P0 = new 'String'
   $P0 = "something bad happened"
-  $P1 = new ['parrot';'exception'], $P0  # create new exception object
-  throw $P1                              # throw it
-
-{{ The above example doesn't work in r23568 -- see RT#48320. }}
+  $P1 = new 'Exception', $P0   # create new exception object
+  throw $P1                      # throw it
 
 =head1 ATTACHMENTS
 

Reply via email to