[Bio] / FigKernelPackages / Tracer.pm Repository:
ViewVC logotype

Diff of /FigKernelPackages/Tracer.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21, Tue Aug 16 20:21:51 2005 UTC revision 1.22, Thu Sep 1 09:35:03 2005 UTC
# Line 1118  Line 1118 
1118    
1119  C<< Confess($message); >>  C<< Confess($message); >>
1120    
1121  Trace the call stack and abort the program with the specified message. The stack  Trace the call stack and abort the program with the specified message. When used with
 trace will only appear if the trace level for this package is 1 or more. When used with  
1122  the OR operator and the L</Assert> method, B<Confess> can function as a debugging assert.  the OR operator and the L</Assert> method, B<Confess> can function as a debugging assert.
1123  So, for example  So, for example
1124    
# Line 1141  Line 1140 
1140      # Get the parameters.      # Get the parameters.
1141      my ($message) = @_;      my ($message) = @_;
1142      # Trace the call stack.      # Trace the call stack.
1143      Cluck($message) if T(1);      Cluck($message);
1144      # Abort the program.      # Abort the program.
1145      croak(">>> $message");      croak(">>> $message");
1146  }  }
# Line 1310  Line 1309 
1309    
1310  C<< if (Tracer::DebugMode) { ...code... } >>  C<< if (Tracer::DebugMode) { ...code... } >>
1311    
1312  Return TRUE if debug mode has been turned on in FIG_Config, else output  Return TRUE if debug mode has been turned on, else output an error
1313  an error page and return FALSE.  page and return FALSE.
1314    
1315  Certain CGI scripts are too dangerous to exist in the production  Certain CGI scripts are too dangerous to exist in the production
1316  environment. This method provides a simple way to prevent them  environment. This method provides a simple way to prevent them
1317  from working unless they are explicitly turned on by creating a password  from working unless they are explicitly turned on by creating a password
1318  cookie via the B<SetPassword> script.  If debugging mode  cookie via the B<SetPassword> script.  If debugging mode
1319  is not turned on, an error web page will be output.  is not turned on, an error web page will be output directing the
1320    user to enter in the correct password.
1321    
1322  =cut  =cut
1323    
# Line 1394  Line 1394 
1394    
1395  =item padChar (optional)  =item padChar (optional)
1396    
1397    Character to use for padding. The default is a space.
1398    
1399  =item RETURN  =item RETURN
1400    
1401  Returns a copy of the original string with the spaces added to the specified end so  Returns a copy of the original string with the pad character added to the
1402  that it achieves the desired length.  specified end so that it achieves the desired length.
1403    
1404  =back  =back
1405    

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3