Quote and Quote-like Operators

Quote and Quote-like Operators While we usually think of quotes as literal values, in Perl they function as operators, providing various kinds of interpolating and pattern matching capabilities. Perl provides customary quote characters for these behaviors, but also provides a way for you to choose your quote character for any of them. In the following table, a {} represents any pair of delimiters you choose. Customary Generic Meaning Interpolates '' q{} Literal no ""

qr

qr/STRING/ Regexp-like quote. See Regexp Quote-Like Operators in perlop.

qq

qq/STRING/

q

q/STRING/

push

push ARRAY,LIST push EXPR,LIST Treats ARRAY as a stack by appending the values of LIST to the end of ARRAY. The length of ARRAY increases by the length of LIST. Has the same effect as for $value (LIST) { $ARRAY[++$#ARRAY] = $value; } but is more efficient. Returns the number of elements in the array following the completed push. Starting with Perl 5.14, push can take a scalar EXPR, which must hold a reference to an unblessed array. The argument will be dereferenced automatically. This aspe

ptardiff - program that diffs an extracted archive against an unextracted one

NAME DESCRIPTION SYNOPSIS OPTIONS SEE ALSO NAME ptardiff - program that diffs an extracted archive against an unextracted one DESCRIPTION ptardiff is a small program that diffs an extracted archive against an unextracted one, using the perl module Archive::Tar. This effectively lets you view changes made to an archives contents. Provide the progam with an ARCHIVE_FILE and it will look up all the files with in the archive, scan the current working directory for a file with the name and diff

ptar

NAME DESCRIPTION SYNOPSIS OPTIONS SEE ALSO NAME ptar - a tar-like program written in perl DESCRIPTION ptar is a small, tar look-alike program that uses the perl module Archive::Tar to extract, create and list tar archives. SYNOPSIS ptar -c [-v] [-z] [-C] [-f ARCHIVE_FILE | -] FILE FILE ... ptar -c [-v] [-z] [-C] [-T index | -] [-f ARCHIVE_FILE | -] ptar -x [-v] [-z] [-f ARCHIVE_FILE | -] ptar -t [-z] [-f ARCHIVE_FILE | -] ptar -h OPTIONS c Create ARCHIVE_FILE or STDOUT (-) from FILE x

prove - Run tests through a TAP harness.

NAME USAGE OPTIONS NOTES.proverc Reading from STDIN Default Test Directory Colored Test Output Exit Code Arguments to Tests --exec --merge --trap --state --rules @INC Taint Mode FORMATTERS SOURCE HANDLERS PLUGINSAvailable Plugins Writing Plugins NAME prove - Run tests through a TAP harness. USAGE prove [options] [files or directories] OPTIONS Boolean options: -v, --verbose Print all test lines. -l, --lib Add 'lib' to the path for your tests (-Ilib). -b, --blib

prototype

prototype FUNCTION prototype Returns the prototype of a function as a string (or undef if the function has no prototype). FUNCTION is a reference to, or the name of, the function whose prototype you want to retrieve. If FUNCTION is omitted, $_ is used. If FUNCTION is a string starting with CORE:: , the rest is taken as a name for a Perl builtin. If the builtin's arguments cannot be adequately expressed by a prototype (such as system), prototype() returns undef, because the builtin does not real

printf

printf FILEHANDLE FORMAT, LIST printf FILEHANDLE printf FORMAT, LIST printf Equivalent to print FILEHANDLE sprintf(FORMAT, LIST) , except that $\ (the output record separator) is not appended. The FORMAT and the LIST are actually parsed as a single list. The first argument of the list will be interpreted as the printf format. This means that printf(@_) will use $_[0] as the format. See sprintf for an explanation of the format argument. If use locale for LC_NUMERIC Look for this throught pod is