home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


a

a [
line
] 
command

Sets an action to be done before the line is executed. The following steps are taken:

  • Checks for a breakpoint at this line.

  • Prints the line if necessary.

  • Performs any actions associated with the line.

  • Prompts the user if at a breakpoint or in single-step mode.

  • Evaluates the line.

For example, the following prints the value of $foo (and " DB FOUND ") every time line 53 is passed:

a 53 print "DB FOUND $foo\n"


Previous: 6.2 Debugger Commands Perl in a Nutshell Next: Reference: A
6.2 Debugger Commands Book Index Reference: A

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.