dump

dump LABEL dump EXPR dump This function causes an immediate core dump. See also the -u command-line switch in perlrun, which does the same thing. Primarily this is so that you can use the undump 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 a goto LABEL (with all the restrictions that goto suffers). Think of it as a goto with an interv

do

do BLOCK Not really a function. Returns the value of the last command in the sequence of commands indicated by BLOCK. When modified by the while or until loop modifier, executes the BLOCK once before testing the loop condition. (On other statements the loop modifiers test the conditional first.) do BLOCK does not count as a loop, so the loop control statements next, last, or redo cannot be used to leave or restart the block. See perlsyn for alternative strategies. do EXPR Uses the value of EXPR

DirHandle - supply object methods for directory handles

NAME SYNOPSIS DESCRIPTION NAME DirHandle - supply object methods for directory handles SYNOPSIS use DirHandle; $d = DirHandle->new("."); if (defined $d) { while (defined($_ = $d->read)) { something($_); } $d->rewind; while (defined($_ = $d->read)) { something_else($_); } undef $d; } DESCRIPTION The DirHandle method provide an alternative interface to the opendir(), closedir(), readdir(), and rewinddir() functions. The only objective benefit to using DirHandle is t

Digest::SHA - Perl extension for SHA-1/224/256/384/512

NAME SYNOPSIS SYNOPSIS (HMAC-SHA) ABSTRACT DESCRIPTION UNICODE AND SIDE EFFECTS NIST STATEMENT ON SHA-1 PADDING OF BASE64 DIGESTS EXPORT EXPORTABLE FUNCTIONS SEE ALSO AUTHOR ACKNOWLEDGMENTS COPYRIGHT AND LICENSE NAME Digest::SHA - Perl extension for SHA-1/224/256/384/512 SYNOPSIS In programs: # Functional interface use Digest::SHA qw(sha1 sha1_hex sha1_base64 ...); $digest = sha1($data); $digest = sha1_hex($data); $digest = sha1_base64($data); $digest = sha256($data); $digest = sha384_hex

Digest::MD5 - Perl interface to the MD5 Algorithm

NAME SYNOPSIS DESCRIPTION FUNCTIONS METHODS EXAMPLES SEE ALSO COPYRIGHT AUTHORS NAME Digest::MD5 - Perl interface to the MD5 Algorithm SYNOPSIS # Functional style use Digest::MD5 qw(md5 md5_hex md5_base64); $digest = md5($data); $digest = md5_hex($data); $digest = md5_base64($data); # OO style use Digest::MD5; $ctx = Digest::MD5->new; $ctx->add($data); $ctx->addfile($file_handle); $digest = $ctx->digest; $digest = $ctx->hexdigest; $digest = $ctx->b64digest; DESCRIPTION

Digest::file - Calculate digests of files

NAME SYNOPSIS DESCRIPTION SEE ALSO NAME Digest::file - Calculate digests of files SYNOPSIS # Poor mans "md5sum" command use Digest::file qw(digest_file_hex); for (@ARGV) { print digest_file_hex($_, "MD5"), " $_\n"; } DESCRIPTION This module provide 3 convenience functions to calculate the digest of files. The following functions are provided: digest_file( $file, $algorithm, [$arg,...] ) This function will calculate and return the binary digest of the bytes of the given file. The functi

Digest::base - Digest base class

NAME SYNOPSIS DESCRIPTION SEE ALSO NAME Digest::base - Digest base class SYNOPSIS package Digest::Foo; use base 'Digest::base'; DESCRIPTION The Digest::base class provide implementations of the methods addfile and add_bits in terms of add , and of the methods hexdigest and b64digest in terms of digest . Digest implementations might want to inherit from this class to get this implementations of the alternative add and digest methods. A minimal subclass needs to implement the following methods

Digest - Modules that calculate message digests

NAME SYNOPSIS DESCRIPTION OO INTERFACE Digest speed SEE ALSO AUTHOR NAME Digest - Modules that calculate message digests SYNOPSIS $md5 = Digest->new("MD5"); $sha1 = Digest->new("SHA-1"); $sha256 = Digest->new("SHA-256"); $sha384 = Digest->new("SHA-384"); $sha512 = Digest->new("SHA-512"); $hmac = Digest->HMAC_MD5($key); DESCRIPTION The Digest:: modules calculate digests, also called "fingerprints" or "hashes", of some data, called a message. The digest is (usually) some sm

die

die LIST die raises an exception. Inside an eval the error message is stuffed into $@ and the eval is terminated with the undefined value. If the exception is outside of all enclosing evals, then the uncaught exception prints LIST to STDERR and exits with a non-zero value. If you need to exit the process with a specific exit code, see exit. Equivalent examples: die "Can't cd to spool: $!\n" unless chdir '/usr/spool/news'; chdir '/usr/spool/news' or die "Can't cd to spool: $!\n" If the last ele

diagnostics, splain - produce verbose warning diagnostics

NAME SYNOPSIS DESCRIPTIONThe diagnostics Pragma The _splain_ Program EXAMPLES INTERNALS BUGS AUTHOR NAME diagnostics, splain - produce verbose warning diagnostics SYNOPSIS Using the diagnostics pragma: use diagnostics; use diagnostics -verbose; enable diagnostics; disable diagnostics; Using the splain standalone filter program: perl program 2>diag.out splain [-v] [-p] diag.out Using diagnostics to get stack traces from a misbehaving script: perl -Mdiagnostics=-traceonly my_script.pl