tell

tell FILEHANDLE tell Returns the current position in bytes for FILEHANDLE, or -1 on error. FILEHANDLE may be an expression whose value gives the name of the actual filehandle. If FILEHANDLE is omitted, assumes the file last read. Note the in bytes: even if the filehandle has been set to operate on characters (for example by using the :encoding(utf8) open layer), tell() will return byte offsets, not character offsets (because that would render seek() and tell() rather slow). The return value of

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.

perlebcdic - Considerations for running Perl on EBCDIC platforms

NAME DESCRIPTION COMMON CHARACTER CODE SETSASCII ISO 8859 Latin 1 (ISO 8859-1) EBCDIC Unicode code points versus EBCDIC code points Unicode and UTF Using Encode SINGLE OCTET TABLESTable in hex, sorted in 1047 order IDENTIFYING CHARACTER CODE SETS CONVERSIONSutf8::unicode_to_native() and utf8::native_to_unicode() tr/// iconv C RTL OPERATOR DIFFERENCES FUNCTION DIFFERENCES REGULAR EXPRESSION DIFFERENCES SOCKETS SORTINGIgnore ASCII vs. EBCDIC sort differences. Use a sort helper function MONO

DBM_Filter::null - filter for DBM_Filter

NAME SYNOPSIS DESCRIPTION SEE ALSO AUTHOR NAME DBM_Filter::null - filter for DBM_Filter SYNOPSIS use SDBM_File; # or DB_File, GDBM_File, NDBM_File, or ODBM_File use DBM_Filter ; $db = tie %hash, ... $db->Filter_Push('null'); DESCRIPTION This filter ensures that all data written to the DBM file is null terminated. This is useful when you have a perl script that needs to interoperate with a DBM file that a C program also uses. A fairly common issue is for the C application to include the t

perllol - Manipulating Arrays of Arrays in Perl

NAME DESCRIPTIONDeclaration and Access of Arrays of Arrays Growing Your Own Access and Printing Slices SEE ALSO AUTHOR NAME perllol - Manipulating Arrays of Arrays in Perl DESCRIPTION Declaration and Access of Arrays of Arrays The simplest two-level data structure to build in Perl is an array of arrays, sometimes casually called a list of lists. It's reasonably easy to understand, and almost everything that applies here will also be applicable later on with the fancier data structures. An a

DBM_Filter::int32 - filter for DBM_Filter

NAME SYNOPSIS DESCRIPTION SEE ALSO AUTHOR NAME DBM_Filter::int32 - filter for DBM_Filter SYNOPSIS use SDBM_File; # or DB_File, GDBM_File, NDBM_File, or ODBM_File use DBM_Filter ; $db = tie %hash, ... $db->Filter_Push('int32'); DESCRIPTION This DBM filter is used when interoperating with a C/C++ application that uses a C int as either the key and/or value in the DBM file. SEE ALSO DBM_Filter, perldbmfilter AUTHOR Paul Marquess pmqs@cpan.org

gmtime

gmtime EXPR gmtime Works just like localtime but the returned values are localized for the standard Greenwich time zone. Note: When called in list context, $isdst, the last value returned by gmtime, is always 0 . There is no Daylight Saving Time in GMT. Portability issues: gmtime in perlport.

Digest::file - Calculate digests of files

NAME SYNOPSIS DESCRIPTION SEE ALSO NAME Digest::file - Calculate digests of files SYNOPSIS # Poor mans "md5sum" command use Digest::file qw(digest_file_hex); for (@ARGV) { print digest_file_hex($_, "MD5"), " $_\n"; } DESCRIPTION This module provide 3 convenience functions to calculate the digest of files. The following functions are provided: digest_file( $file, $algorithm, [$arg,...] ) This function will calculate and return the binary digest of the bytes of the given file. The functi

Time::localtime - by-name interface to Perl's built-in localtime() function

NAME SYNOPSIS DESCRIPTION NOTE AUTHOR NAME Time::localtime - by-name interface to Perl's built-in localtime() function SYNOPSIS use Time::localtime; printf "Year is %d\n", localtime->year() + 1900; $now = ctime(); use Time::localtime; use File::stat; $date_string = ctime(stat($file)->mtime); DESCRIPTION This module's default exports override the core localtime() function, replacing it with a version that returns "Time::tm" objects. This object has methods that return the similarly na

perlfunc - Perl builtin functions

NAME DESCRIPTIONPerl Functions by Category Portability Alphabetical Listing of Perl Functions Non-function Keywords by Cross-reference NAME perlfunc - Perl builtin functions DESCRIPTION The functions in this section can serve as terms in an expression. They fall into two major categories: list operators and named unary operators. These differ in their precedence relationship with a following comma. (See the precedence table in perlop.) List operators take more than one argument, while u