Reference: dump (Perl in a Nutshell)

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: doChapter 5
Function Reference
Next: Reference: each
 

dump

dump label

During program execution, causes an immediate core dump after code previous to it has already been executed. Primarily, this is so that you can use the undump program to turn your core dump into an executable binary after having initialized all your variables at the beginning of the program. dump arranges for the revived binary, when run, to begin by executing a goto label (with all the restrictions that goto suffers). Think of the operation as a goto with an intervening core dump and reincarnation. If label is omitted, the function arranges for the program to restart from the top. Please note that any files opened at the time of the dump will not be open any more when the program is reincarnated. See also the -u command-line switch.

The undump program is not available on all systems, and may not be compatible with specific ports of Perl.


Previous: Reference: doPerl in a NutshellNext: Reference: each
Reference: doBook IndexReference: each

Library Navigation Links

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