$[

$[ This variable stores the index of the first element in an array, and of the first character in a substring. The default is 0, but you could theoretically set it to 1 to make Perl behave more like awk (or Fortran) when subscripting and when evaluating the index() and substr() functions. As of release 5 of Perl, assignment to $[ is treated as a compiler directive, and cannot influence the behavior of any other file. (That's why you can only assign compile-time constants to it.) Its use is hig

perlcheat - Perl 5 Cheat Sheet

NAME DESCRIPTIONThe sheet ACKNOWLEDGEMENTS AUTHOR SEE ALSO NAME perlcheat - Perl 5 Cheat Sheet DESCRIPTION This 'cheat sheet' is a handy reference, meant for beginning Perl programmers. Not everything is mentioned, but 195 features may already be overwhelming. The sheet CONTEXTS SIGILS ref ARRAYS HASHES void $scalar SCALAR @array %hash scalar @array ARRAY @array[0, 2] @hash{'a', 'b'} list %hash HASH $array[0] $hash{'a'} &am

Parse::CPAN::Meta - Parse META.yml and META.json CPAN metadata files

NAME VERSION SYNOPSIS DESCRIPTION METHODSload_file load_yaml_string load_json_string load_string yaml_backend json_backend FUNCTIONSLoad LoadFile ENVIRONMENTPERL_JSON_BACKEND PERL_YAML_BACKEND SUPPORTBugs / Feature Requests Source Code AUTHORS CONTRIBUTORS COPYRIGHT AND LICENSE NAME Parse::CPAN::Meta - Parse META.yml and META.json CPAN metadata files VERSION version 1.4414 SYNOPSIS ############################################# # In your file --- name: My-Distribution version: 1.23 re

$PROGRAM_NAME

$PROGRAM_NAME

INIT

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

cmp

cmp These operators are documented in perlop.

grep

grep BLOCK LIST grep EXPR,LIST This is similar in spirit to, but not the same as, grep(1) and its relatives. In particular, it is not limited to using regular expressions. Evaluates the BLOCK or EXPR for each element of LIST (locally setting $_ to each element) and returns the list value consisting of those elements for which the expression evaluated to true. In scalar context, returns the number of times the expression was true. @foo = grep(!/^#/, @bar); # weed out comments or equivalently

Locale::Language - standard codes for language identification

NAME SYNOPSIS DESCRIPTION SUPPORTED CODE SETS ROUTINES SEE ALSO AUTHOR COPYRIGHT NAME Locale::Language - standard codes for language identification SYNOPSIS use Locale::Language; $lang = code2language('en'); # $lang gets 'English' $code = language2code('French'); # $code gets 'fr' @codes = all_language_codes(); @names = all_language_names(); DESCRIPTION The Locale::Language module provides access to standard codes used for identifying languages, such as those as defined in IS

%LAST_PAREN_MATCH

%LAST_PAREN_MATCH

strict - Perl pragma to restrict unsafe constructs

NAME SYNOPSIS DESCRIPTION HISTORY NAME strict - Perl pragma to restrict unsafe constructs SYNOPSIS use strict; use strict "vars"; use strict "refs"; use strict "subs"; use strict; no strict "vars"; DESCRIPTION If no import list is supplied, all possible restrictions are assumed. (This is the safest mode to operate in, but is sometimes too strict for casual programming.) Currently, there are three possible things to be strict about: "subs", "vars", and "refs". strict refs This generates a