bless

bless REF,CLASSNAME bless REF This function tells the thingy referenced by REF that it is now an object in the CLASSNAME package. If CLASSNAME is omitted, the current package is used. Because a bless is often the last thing in a constructor, it returns the reference for convenience. Always use the two-argument version if a derived class might inherit the function doing the blessing. See perlobj for more about the blessing (and blessings) of objects. Consider always blessing objects in CLASSNAME

caller

caller EXPR caller Returns the context of the current pure perl subroutine call. In scalar context, returns the caller's package name if there is a caller (that is, if we're in a subroutine or eval or require) and the undefined value otherwise. caller never returns XS subs and they are skipped. The next pure perl sub will appear instead of the XS sub in caller's return values. In list context, caller returns # 0 1 2 ($package, $filename, $line) = caller; With EXPR, it returns

Binding Operators

Binding Operators Binary "=~" binds a scalar expression to a pattern match. Certain operations search or modify the string $_ by default. This operator makes that kind of operation work on some other string. The right argument is a search pattern, substitution, or transliteration. The left argument is what is supposed to be searched, substituted, or transliterated instead of the default $_ . When used in scalar context, the return value generally indicates the success of the operation. The exc

vec

vec EXPR,OFFSET,BITS Treats the string in EXPR as a bit vector made up of elements of width BITS and returns the value of the element specified by OFFSET as an unsigned integer. BITS therefore specifies the number of bits that are reserved for each element in the bit vector. This must be a power of two from 1 to 32 (or 64, if your platform supports that). If BITS is 8, "elements" coincide with bytes of the input string. If BITS is 16 or more, bytes of the input string are grouped into chunks of

eval

eval EXPR eval BLOCK eval In the first form, often referred to as a "string eval", the return value of EXPR is parsed and executed as if it were a little Perl program. The value of the expression (which is itself determined within scalar context) is first parsed, and if there were no errors, executed as a block within the lexical context of the current Perl program. This means, that in particular, any outer lexical variables are visible to it, and any package variable settings or subroutine and

socket

socket SOCKET,DOMAIN,TYPE,PROTOCOL Opens a socket of the specified kind and attaches it to filehandle SOCKET. DOMAIN, TYPE, and PROTOCOL are specified the same as for the syscall of the same name. You should use Socket first to get the proper definitions imported. See the examples in Sockets: Client/Server Communication in perlipc. On systems that support a close-on-exec flag on files, the flag will be set for the newly opened file descriptor, as determined by the value of $^F. See $^F in perlv

IO::Compress::Base - Base Class for IO::Compress modules

NAME SYNOPSIS DESCRIPTION SEE ALSO AUTHOR MODIFICATION HISTORY COPYRIGHT AND LICENSE NAME IO::Compress::Base - Base Class for IO::Compress modules SYNOPSIS use IO::Compress::Base ; DESCRIPTION This module is not intended for direct use in application code. Its sole purpose is to be sub-classed by IO::Compress modules. SEE ALSO Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::C

ExtUtils::MakeMaker::Config - Wrapper around Config.pm

NAME SYNOPSIS DESCRIPTION NAME ExtUtils::MakeMaker::Config - Wrapper around Config.pm SYNOPSIS use ExtUtils::MakeMaker::Config; print $Config{installbin}; # or whatever DESCRIPTION FOR INTERNAL USE ONLY A very thin wrapper around Config.pm so MakeMaker is easier to test.

perlre - Perl regular expressions

NAME DESCRIPTIONModifiers Regular Expressions Quoting metacharacters Extended Patterns Special Backtracking Control Verbs Backtracking Version 8 Regular Expressions Warning on \1 Instead of $1 Repeated Patterns Matching a Zero-length Substring Combining RE Pieces Creating Custom RE Engines Embedded Code Execution Frequency PCRE/Python Support BUGS SEE ALSO NAME perlre - Perl regular expressions DESCRIPTION This page describes the syntax of regular expressions in Perl. If you haven't use

int

int EXPR int Returns the integer portion of EXPR. If EXPR is omitted, uses $_ . You should not use this function for rounding: one because it truncates towards 0 , and two because machine representations of floating-point numbers can sometimes produce counterintuitive results. For example, int(-6.725/0.025) produces -268 rather than the correct -269; that's because it's really more like -268.99999999999994315658 instead. Usually, the sprintf, printf, or the POSIX::floor and POSIX::ceil function