my

my VARLIST my TYPE VARLIST my VARLIST : ATTRS my TYPE VARLIST : ATTRS A my declares the listed variables to be local (lexically) to the enclosing block, file, or eval. If more than one variable is listed, the list must be placed in parentheses. The exact semantics and interface of TYPE and ATTRS are still evolving. TYPE may be a bareword, a constant declared with use constant , or __PACKAGE__. It is currently bound to the use of the fields pragma, and attributes are handled using the attributes

write

write FILEHANDLE write EXPR write Writes a formatted record (possibly multi-line) to the specified FILEHANDLE, using the format associated with that file. By default the format for a file is the one having the same name as the filehandle, but the format for the current output channel (see the select function) may be set explicitly by assigning the name of the format to the $~ variable. Top of form processing is handled automatically: if there is insufficient room on the current page for the for

unshift

unshift ARRAY,LIST unshift EXPR,LIST Does the opposite of a shift. Or the opposite of a push, depending on how you look at it. Prepends list to the front of the array and returns the new number of elements in the array. unshift(@ARGV, '-e') unless $ARGV[0] =~ /^-/; Note the LIST is prepended whole, not one element at a time, so the prepended elements stay in the same order. Use reverse to do the reverse. Starting with Perl 5.14, unshift can take a scalar EXPR, which must hold a reference to an

state

state VARLIST state TYPE VARLIST state VARLIST : ATTRS state TYPE VARLIST : ATTRS state declares a lexically scoped variable, just like my. However, those variables will never be reinitialized, contrary to lexical variables that are reinitialized each time their enclosing block is entered. See Persistent Private Variables in perlsub for details. If more than one variable is listed, the list must be placed in parentheses. With a parenthesised list, undef can be used as a dummy placeholder. Howev

TAP::Parser::Source - a TAP source & meta data about it

NAME VERSION SYNOPSIS DESCRIPTION METHODSClass Methods Instance Methods AUTHORS SEE ALSO NAME TAP::Parser::Source - a TAP source & meta data about it VERSION Version 3.35 SYNOPSIS use TAP::Parser::Source; my $source = TAP::Parser::Source->new; $source->raw( \'reference to raw TAP source' ) ->config( \%config ) ->merge( $boolean ) ->switches( \@switches ) ->test_args( \@args ) ->assemble_meta; do { ... } if $source->meta->{is

BEGIN

BEGIN These compile phase keywords are documented in BEGIN, UNITCHECK, CHECK, INIT and END in perlmod.

system

system LIST system PROGRAM LIST Does exactly the same thing as exec LIST , except that a fork is done first and the parent process waits for the child process to exit. Note that argument processing varies depending on the number of arguments. If there is more than one argument in LIST, or if LIST is an array with more than one value, starts the program given by the first element of the list with arguments given by the rest of the list. If there is only one scalar argument, the argument is check

Operator Precedence and Associativity

Operator Precedence and Associativity Operator precedence and associativity work in Perl more or less like they do in mathematics. Operator precedence means some operators are evaluated before others. For example, in 2 + 4 * 5 , the multiplication has higher precedence so 4 * 5 is evaluated first yielding 2 + 20 == 22 and not 6 * 5 == 30 . Operator associativity defines what happens if a sequence of the same operators is used one after another: whether the evaluator will evaluate the left oper

Locale::Country - standard codes for country identification

NAME SYNOPSIS DESCRIPTION SUPPORTED CODE SETS ROUTINES SEE ALSO AUTHOR COPYRIGHT NAME Locale::Country - standard codes for country identification SYNOPSIS use Locale::Country; $country = code2country('jp' [,CODESET]); # $country gets 'Japan' $code = country2code('Norway' [,CODESET]); # $code gets 'no' @codes = all_country_codes( [CODESET]); @names = all_country_names(); # semi-private routines Locale::Country::alias_code('uk' => 'gb'); Locale::Country::rename_country('g

Config::Extensions

SYNOPSIS DESCRIPTION AUTHOR SYNOPSIS use Config::Extensions '%Extensions'; if ($Extensions{PerlIO::via}) { # This perl has PerlIO::via built } DESCRIPTION The Config::Extensions module provides a hash %Extensions containing all the core extensions that were enabled for this perl. The hash is keyed by extension name, with each entry having one of 3 possible values: dynamic The extension is dynamically linked nonxs The extension is pure perl, so doesn't need linking to the perl executab