@INC

@INC The array @INC contains the list of places that the do EXPR , require, or use constructs look for their library files. It initially consists of the arguments to any -I command-line switches, followed by the default Perl library, probably /usr/local/lib/perl, followed by ".", to represent the current directory. ("." will not be appended if taint checks are enabled, either by -T or by -t .) If you need to modify this at runtime, you should use the use lib pragma to get the machine-dependent

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

Devel::PPPort - Perl/Pollution/Portability

NAME SYNOPSIS DESCRIPTIONWhy use ppport.h? How to use ppport.h Running ppport.h FUNCTIONSWriteFile GetFileContents COMPATIBILITYProvided Perl compatibility API Perl API not supported by ppport.h BUGS AUTHORS COPYRIGHT SEE ALSO NAME Devel::PPPort - Perl/Pollution/Portability SYNOPSIS Devel::PPPort::WriteFile(); # defaults to ./ppport.h Devel::PPPort::WriteFile('someheader.h'); # Same as above but retrieve contents rather than write file my $contents = Devel::PPPort::GetFileContents();

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

attributes - get/set subroutine or variable attributes

NAME SYNOPSIS DESCRIPTIONWhat import does Built-in Attributes Available Subroutines Package-specific Attribute Handling Syntax of Attribute Lists EXPORTSDefault exports Available exports Export tags defined EXAMPLES MORE EXAMPLES SEE ALSO NAME attributes - get/set subroutine or variable attributes SYNOPSIS sub foo : method ; my ($x,@y,%z) : Bent = 1; my $s = sub : method { ... }; use attributes (); # optional, to get subroutine declarations my @attrlist = attributes::get(\&foo); use

DynaLoader - Dynamically load C libraries into Perl code

NAME SYNOPSIS DESCRIPTION AUTHOR NAME DynaLoader - Dynamically load C libraries into Perl code SYNOPSIS package YourPackage; require DynaLoader; @ISA = qw(... DynaLoader ...); bootstrap YourPackage; # optional method for 'global' loading sub dl_load_flags { 0x01 } DESCRIPTION This document defines a standard generic interface to the dynamic linking mechanisms available on many platforms. Its primary purpose is to implement automatic dynamic loading of Perl modules. This document serves as b

hex

hex EXPR hex Interprets EXPR as a hex string and returns the corresponding value. (To convert strings that might start with either 0 , 0x , or 0b, see oct.) If EXPR is omitted, uses $_ . print hex '0xAf'; # prints '175' print hex 'aF'; # same Hex strings may only represent integers. Strings that would cause integer overflow trigger a warning. Leading whitespace is not stripped, unlike oct(). To present something as hex, look into printf, sprintf, and unpack.

$0

$0 Contains the name of the program being executed. On some (but not all) operating systems assigning to $0 modifies the argument area that the ps program sees. On some platforms you may have to use special ps options or a different ps to see the changes. Modifying the $0 is more useful as a way of indicating the current program state than it is for hiding the program you're running. Note that there are platform-specific limitations on the maximum length of $0 . In the most extreme case it may

perlrun - how to execute the Perl interpreter

NAME SYNOPSIS DESCRIPTION#! and quoting on non-Unix systems Location of Perl Command Switches ENVIRONMENT NAME perlrun - how to execute the Perl interpreter SYNOPSIS perl [ -sTtuUWX ] [ -hv ] [ -V[:configvar] ] [ -cw ] [ -d[t][:debugger] ] [ -D[number/list] ] [ -pna ] [ -Fpattern ] [ -l[octal] ] [ -0[octal/hexadecimal] ] [ -Idir ] [ -m[-]module ] [ -M[-]'module...' ] [ -f ] [ -C [number/list] ] [ -S ] [ -x[dir] ] [ -i[extension] ] [ [-e|-E] 'command' ] [ -- ] [ programfile ] [ argument

msgrcv

msgrcv ID,VAR,SIZE,TYPE,FLAGS Calls the System V IPC function msgrcv to receive a message from message queue ID into variable VAR with a maximum message size of SIZE. Note that when a message is received, the message type as a native long integer will be the first thing in VAR, followed by the actual message. This packing may be opened with unpack("l! a*") . Taints the variable. Returns true if successful, false on error. See also SysV IPC in perlipc and the documentation for IPC::SysV and IPC: