semop

semop KEY,OPSTRING Calls the System V IPC function semop(2) for semaphore operations such as signalling and waiting. OPSTRING must be a packed array of semop structures. Each semop structure can be generated with pack("s!3", $semnum, $semop, $semflag) . The length of OPSTRING implies the number of semaphore operations. Returns true if successful, false on error. As an example, the following code waits on semaphore $semnum of semaphore id $semid: $semop = pack("s!3", $semnum, -1, 0); die "Semaph

perlhack - How to hack on Perl

NAME DESCRIPTION SUPER QUICK PATCH GUIDE BUG REPORTING PERL 5 PORTERSperl-changes mailing list #p5p on IRC GETTING THE PERL SOURCERead access via Git Read access via the web Read access via rsync Write access via git PATCHING PERLSubmitting patches Getting your patch accepted Patching a core module Updating perldelta What makes for a good patch? TESTINGSpecial make test targets Parallel tests Running tests by hand Using _t/harness_ for testing Performance testing MORE READING FOR GUTS H

msgctl

msgctl ID,CMD,ARG Calls the System V IPC function msgctl(2). You'll probably have to say use IPC::SysV; first to get the correct constant definitions. If CMD is IPC_STAT , then ARG must be a variable that will hold the returned msqid_ds structure. Returns like ioctl: the undefined value for error, "0 but true" for zero, or the actual return value otherwise. See also SysV IPC in perlipc and the documentation for IPC::SysV and IPC::Semaphore . Portability issues: msgctl in perlport.

oct

oct EXPR oct Interprets EXPR as an octal string and returns the corresponding value. (If EXPR happens to start off with 0x , interprets it as a hex string. If EXPR starts off with 0b, it is interpreted as a binary string. Leading whitespace is ignored in all three cases.) The following will handle decimal, binary, octal, and hex in standard Perl notation: $val = oct($val) if $val =~ /^0/; If EXPR is omitted, uses $_ . To go the other way (produce a number in octal), use sprintf() or printf():

Encode::Unicode::UTF7 -- UTF-7 encoding

NAME SYNOPSIS ABSTRACT In Practice SEE ALSO NAME Encode::Unicode::UTF7 -- UTF-7 encoding SYNOPSIS use Encode qw/encode decode/; $utf7 = encode("UTF-7", $utf8); $utf8 = decode("UTF-7", $ucs2); ABSTRACT This module implements UTF-7 encoding documented in RFC 2152. UTF-7, as its name suggests, is a 7-bit re-encoded version of UTF-16BE. It is designed to be MTA-safe and expected to be a standard way to exchange Unicoded mails via mails. But with the advent of UTF-8 and 8-bit compliant MTAs, UTF

use

use Module VERSION LIST use Module VERSION use Module LIST use Module use VERSION Imports some semantics into the current package from the named module, generally by aliasing certain subroutine or variable names into your package. It is exactly equivalent to BEGIN { require Module; Module->import( LIST ); } except that Module must be a bareword. The importation can be made conditional by using the if module. In the peculiar use VERSION form, VERSION may be either a positive decimal fraction

utime

utime LIST Changes the access and modification times on each file of a list of files. The first two elements of the list must be the NUMERIC access and modification times, in that order. Returns the number of files successfully changed. The inode change time of each file is set to the current time. For example, this code has the same effect as the Unix touch(1) command when the files already exist and belong to the user running the program: #!/usr/bin/perl $atime = $mtime = time; utime $atime,

Net::Time - time and daytime network client interface

NAME SYNOPSIS DESCRIPTION AUTHOR COPYRIGHT NAME Net::Time - time and daytime network client interface SYNOPSIS use Net::Time qw(inet_time inet_daytime); print inet_time(); # use default host from Net::Config print inet_time('localhost'); print inet_time('localhost', 'tcp'); print inet_daytime(); # use default host from Net::Config print inet_daytime('localhost'); print inet_daytime('localhost', 'tcp'); DESCRIPTION Net::Time provides subroutines that obtain the time on a remo

not

not These operators are documented in perlop.

perlsec - Perl security

NAME DESCRIPTION SECURITY VULNERABILITY CONTACT INFORMATION SECURITY MECHANISMS AND CONCERNSTaint mode Laundering and Detecting Tainted Data Switches On the "#!" Line Taint mode and @INC Cleaning Up Your Path Security Bugs Protecting Your Programs Unicode Algorithmic Complexity Attacks SEE ALSO NAME perlsec - Perl security DESCRIPTION Perl is designed to make it easy to program securely even when running with extra privileges, like setuid or setgid programs. Unlike most command line shells,