Changes

Jump to navigation Jump to search
3 bytes added ,  17:55, 20 December 2013
Line 422: Line 422:  
The "BROKEN" function could also use the "BROKEN_ARG" as a reference to store an error message or some other information that it wants to communicate back to the caller.  For example:
 
The "BROKEN" function could also use the "BROKEN_ARG" as a reference to store an error message or some other information that it wants to communicate back to the caller.  For example:
 
                 $error = ’’;
 
                 $error = ’’;
 
+
 
                   sub my_broken {
 
                   sub my_broken {
 
                       my %args = @_;
 
                       my %args = @_;
Line 430: Line 430:  
                       return undef;
 
                       return undef;
 
                   }
 
                   }
 
+
 
                   $template->fill_in(BROKEN => \&my_broken,
 
                   $template->fill_in(BROKEN => \&my_broken,
 
                                       BROKEN_ARG => \$error,
 
                                       BROKEN_ARG => \$error,
 
                                     );
 
                                     );
 
+
 
                   if ($error) {
 
                   if ($error) {
 
                     die "It didn’t work: $error";
 
                     die "It didn’t work: $error";

Navigation menu