lstat

lstat FILEHANDLE lstat EXPR lstat DIRHANDLE lstat Does the same thing as the stat function (including setting the special _ filehandle) but stats a symbolic link instead of the file the symbolic link points to. If symbolic links are unimplemented on your system, a normal stat is done. For much more detailed information, please see the documentation for stat. If EXPR is omitted, stats $_ . Portability issues: lstat in perlport.

Logical or and Exclusive Or

Logical or and Exclusive Or Binary "or" returns the logical disjunction of the two surrounding expressions. It's equivalent to || except for the very low precedence. This makes it useful for control flow: print FH $data or die "Can't write to FH: $!"; This means that it short-circuits: the right expression is evaluated only if the left expression is false. Due to its precedence, you must be careful to avoid using it as replacement for the || operator. It usually works out better for flow con

Logical Not

Logical Not Unary "not" returns the logical negation of the expression to its right. It's the equivalent of "!" except for the very low precedence.

Logical Defined-Or

Logical Defined-Or Although it has no direct equivalent in C, Perl's // operator is related to its C-style "or". In fact, it's exactly the same as ||, except that it tests the left hand side's definedness instead of its truth. Thus, EXPR1 // EXPR2 returns the value of EXPR1 if it's defined, otherwise, the value of EXPR2 is returned. (EXPR1 is evaluated in scalar context, EXPR2 in the context of // itself). Usually, this is the same result as defined(EXPR1) ? EXPR1 : EXPR2 (except that the tern

Logical And

Logical And Binary "and" returns the logical conjunction of the two surrounding expressions. It's equivalent to && except for the very low precedence. This means that it short-circuits: the right expression is evaluated only if the left expression is true.

log

log EXPR log Returns the natural logarithm (base e) of EXPR. If EXPR is omitted, returns the log of $_ . To get the log of another base, use basic algebra: The base-N log of a number is equal to the natural log of that number divided by the natural log of N. For example: sub log10 { my $n = shift; return log($n)/log(10); } See also exp for the inverse operation.

lock

lock THING This function places an advisory lock on a shared variable or referenced object contained in THING until the lock goes out of scope. The value returned is the scalar itself, if the argument is a scalar, or a reference, if the argument is a hash, array or subroutine. lock() is a "weak keyword" : this means that if you've defined a function by this name (before any calls to it), that function will be called instead. If you are not under use threads::shared this does nothing. See thread

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

Locale::Script - standard codes for script identification

NAME SYNOPSIS DESCRIPTION SUPPORTED CODE SETS ROUTINES SEE ALSO AUTHOR COPYRIGHT NAME Locale::Script - standard codes for script identification SYNOPSIS use Locale::Script; $script = code2script('phnx'); # 'Phoenician' $code = script2code('Phoenician'); # 'Phnx' $code = script2code('Phoenician', LOCALE_CODE_NUMERIC); # 115 @codes = all_script_codes(); @scripts = all_script_names(); DESCRIPTION The Locale::Script modul

Locale::Maketext::Simple - Simple interface to Locale::Maketext::Lexicon

NAME VERSION SYNOPSIS DESCRIPTION OPTIONSClass Path Style Export Subclass Decode Encoding ACKNOWLEDGMENTS SEE ALSO AUTHORS COPYRIGHTThe "MIT" License NAME Locale::Maketext::Simple - Simple interface to Locale::Maketext::Lexicon VERSION This document describes version 0.18 of Locale::Maketext::Simple, released Septermber 8, 2006. SYNOPSIS Minimal setup (looks for auto/Foo/*.po and auto/Foo/*.mo): package Foo; use Locale::Maketext::Simple; # exports 'loc' loc_lang('fr'); # set lan