Movatterモバイル変換


[0]ホーム

URL:


functions /dump
(source,CPAN)
You are viewing the version of this documentation from Perl 5.20.1.View the latest version
#dump LABEL
#dump EXPR
#dump

This function causes an immediate core dump. See also the-u command-line switch inperlrun, which does the same thing. Primarily this is so that you can use theundump program (not supplied) to turn your core dump into an executable binary after having initialized all your variables at the beginning of the program. When the new binary is executed it will begin by executing agoto LABEL (with all the restrictions thatgoto suffers). Think of it as a goto with an intervening core dump and reincarnation. IfLABEL is omitted, restarts the program from the top. Thedump EXPR form, available starting in Perl 5.18.0, allows a name to be computed at run time, being otherwise identical todump LABEL.

WARNING: Any files opened at the time of the dump willnot be open any more when the program is reincarnated, with possible resulting confusion by Perl.

This function is now largely obsolete, mostly because it's very hard to convert a core file into an executable. That's why you should now invoke it asCORE::dump(), if you don't want to be warned against a possible typo.

Unlike most named operators, this has the same precedence as assignment. It is also exempt from the looks-like-a-function rule, sodump ("foo")."bar" will cause "bar" to be part of the argument todump.

Portability issues:"dump" in perlport.

Perldoc Browser is maintained by Dan Book (DBOOK). Please contact him via theGitHub issue tracker oremail regarding any issues with the site itself, search, or rendering of documentation.

The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via thePerl issue tracker, themailing list, orIRC to report any issues with the contents or format of the documentation.


[8]ページ先頭

©2009-2025 Movatter.jp