No-ops

No-ops Perl doesn't officially have a no-op operator, but the bare constants 0 and 1 are special-cased not to produce a warning in void context, so you can for example safely do 1 while foo();

User::grent - by-name interface to Perl's built-in getgr*() functions

NAME SYNOPSIS DESCRIPTION NOTE AUTHOR NAME User::grent - by-name interface to Perl's built-in getgr*() functions SYNOPSIS use User::grent; $gr = getgrgid(0) or die "No group zero"; if ( $gr->name eq 'wheel' && @{$gr->members} > 1 ) { print "gid zero name wheel, with other members"; } use User::grent qw(:FIELDS); getgrgid(0) or die "No group zero"; if ( $gr_name eq 'wheel' && @gr_members > 1 ) { print "gid zero name wheel, with other members"; } $gr = ge

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

Time::tm - internal object used by Time::gmtime and Time::localtime

NAME SYNOPSIS DESCRIPTION AUTHOR NAME Time::tm - internal object used by Time::gmtime and Time::localtime SYNOPSIS Don't use this module directly. DESCRIPTION This module is used internally as a base class by Time::localtime And Time::gmtime functions. It creates a Time::tm struct object which is addressable just like's C's tm structure from time.h; namely with sec, min, hour, mday, mon, year, wday, yday, and isdst. This class is an internal interface only. AUTHOR Tom Christiansen

File::Copy - Copy files or filehandles

NAME SYNOPSIS DESCRIPTION RETURN AUTHOR NAME File::Copy - Copy files or filehandles SYNOPSIS use File::Copy; copy("sourcefile","destinationfile") or die "Copy failed: $!"; copy("Copy.pm",\*STDOUT); move("/dev1/sourcefile","/dev2/destinationfile"); use File::Copy "cp"; $n = FileHandle->new("/a/file","r"); cp($n,"x"); DESCRIPTION The File::Copy module provides two basic functions, copy and move , which are useful for getting the contents of a file from one place to another. copy The co

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

B::Terse - Walk Perl syntax tree, printing terse info about ops

NAME SYNOPSIS DESCRIPTION AUTHOR NAME B::Terse - Walk Perl syntax tree, printing terse info about ops SYNOPSIS perl -MO=Terse[,OPTIONS] foo.pl DESCRIPTION This module prints the contents of the parse tree, but without as much information as B::Debug. For comparison, print "Hello, world." produced 96 lines of output from B::Debug, but only 6 from B::Terse. This module is useful for people who are writing their own back end, or who are learning about the Perl internals. It's not useful to the

SelectSaver - save and restore selected file handle

NAME SYNOPSIS DESCRIPTION NAME SelectSaver - save and restore selected file handle SYNOPSIS use SelectSaver; { my $saver = SelectSaver->new(FILEHANDLE); # FILEHANDLE is selected } # previous handle is selected { my $saver = SelectSaver->new; # new handle may be selected, or not } # previous handle is selected DESCRIPTION A SelectSaver object contains a reference to the file handle that was selected when it was created. If its new method gets an extra parameter, then that

unpack

unpack TEMPLATE,EXPR unpack TEMPLATE unpack does the reverse of pack: it takes a string and expands it out into a list of values. (In scalar context, it returns merely the first value produced.) If EXPR is omitted, unpacks the $_ string. See perlpacktut for an introduction to this function. The string is broken into chunks described by the TEMPLATE. Each chunk is converted separately to a value. Typically, either the string is a result of pack, or the characters of the string represent a C stru

Tie::Scalar, Tie::StdScalar - base class definitions for tied scalars

NAME SYNOPSIS DESCRIPTIONTie::Scalar vs Tie::StdScalar MORE INFORMATION NAME Tie::Scalar, Tie::StdScalar - base class definitions for tied scalars SYNOPSIS package NewScalar; require Tie::Scalar; @ISA = qw(Tie::Scalar); sub FETCH { ... } # Provide a needed method sub TIESCALAR { ... } # Overrides inherited method package NewStdScalar; require Tie::Scalar; @ISA = qw(Tie::StdScalar); # All methods provided by default, so define # only what needs be overridden sub FETCH { ... } package