sprintf

sprintf FORMAT, LIST Returns a string formatted by the usual printf conventions of the C library function sprintf. See below for more details and see sprintf(3) or printf(3) on your system for an explanation of the general principles. For example: # Format number with up to 8 leading zeroes $result = sprintf("%08d", $number); # Round number to 3 digits after decimal point $rounded = sprintf("%.3f", $number); Perl does its own sprintf formatting: it emulates the C function sprintf(3), but does

localtime

localtime EXPR localtime Converts a time as returned by the time function to a 9-element list with the time analyzed for the local time zone. Typically used as follows: # 0 1 2 3 4 5 6 7 8 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); All list elements are numeric and come straight out of the C `struct tm'. $sec , $min , and $hour are the seconds, minutes, and hours of the specified time. $mday

HANDLE->format_top_name(EXPR)

HANDLE->format_top_name(EXPR)

shasum - Print or Check SHA Checksums

NAME SYNOPSIS DESCRIPTION AUTHOR SEE ALSO NAME shasum - Print or Check SHA Checksums SYNOPSIS Usage: shasum [OPTION]... [FILE]... Print or check SHA checksums. With no FILE, or when FILE is -, read standard input. -a, --algorithm 1 (default), 224, 256, 384, 512, 512224, 512256 -b, --binary read in binary mode -c, --check read SHA sums from the FILEs and check them -t, --text read in text mode (default) -U, --UNIVERSAL read in Universal Newlines mode

fileno

fileno FILEHANDLE Returns the file descriptor for a filehandle, or undefined if the filehandle is not open. If there is no real file descriptor at the OS level, as can happen with filehandles connected to memory objects via open with a reference for the third argument, -1 is returned. This is mainly useful for constructing bitmaps for select and low-level POSIX tty-handling operations. If FILEHANDLE is an expression, the value is taken as an indirect filehandle, generally its name. You can use

HANDLE->format_name(EXPR)

HANDLE->format_name(EXPR)

UNIVERSAL - base class for ALL classes (blessed references)

NAME SYNOPSIS DESCRIPTION WARNINGS EXPORTS NAME UNIVERSAL - base class for ALL classes (blessed references) SYNOPSIS $is_io = $fd->isa("IO::Handle"); $is_io = Class->isa("IO::Handle"); $does_log = $obj->DOES("Logger"); $does_log = Class->DOES("Logger"); $sub = $obj->can("print"); $sub = Class->can("print"); $sub = eval { $ref->can("fandango") }; $ver = $obj->VERSION; # but never do this! $is_io = UNIVERSAL::isa($fd, "IO::Handle"); $sub

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

NAME SYNOPSIS DESCRIPTIONSystem Specifics NOTE AUTHOR HISTORY NAME User::pwent - by-name interface to Perl's built-in getpw*() functions SYNOPSIS use User::pwent; $pw = getpwnam('daemon') || die "No daemon user"; if ( $pw->uid == 1 && $pw->dir =~ m#^/(bin|tmp)?\z#s ) { print "gid 1 on root dir"; } $real_shell = $pw->shell || '/bin/sh'; for (($fullname, $office, $workphone, $homephone) = split /\s*,\s*/, $pw->gecos) { s/&/ucfirst(lc($pw->name))

Locale::Maketext - framework for localization

NAME SYNOPSIS DESCRIPTION QUICK OVERVIEW METHODSConstruction Methods The "maketext" Method Utility Methods Language Handle Attributes and Internals LANGUAGE CLASS HIERARCHIES ENTRIES IN EACH LEXICON BRACKET NOTATION AUTO LEXICONS READONLY LEXICONS CONTROLLING LOOKUP FAILURE HOW TO USE MAKETEXT SEE ALSO COPYRIGHT AND DISCLAIMER AUTHOR NAME Locale::Maketext - framework for localization SYNOPSIS package MyProgram; use strict; use MyProgram::L10N; # ...which inherits from Locale::Maketext my $

$"

$" When an array or an array slice is interpolated into a double-quoted string or a similar context such as /.../ , its elements are separated by this value. Default is a space. For example, this: print "The array is: @array\n"; is equivalent to this: print "The array is: " . join($", @array) . "\n"; Mnemonic: works in double-quoted context.