Networking
- accept
NEWSOCKET, GENERICSOCKET
- Accepts a new socket.
- bind SOCKET, NAME
- Binds the NAME to the SOCKET.
- connect SOCKET, NAME
- Connects the NAME to the SOCKET.
- getpeername SOCKET
- Returns the socket address of the other end
of the SOCKET.
- getsockname SOCKET
- Returns the name of the SOCKET.
- getsockopt SOCKET, LEVEL,
OPTNAME
- Returns the socket options.
- listen SOCKET, QUEUESIZE
- Starts listening on the specified SOCKET.
- recv SOCKET, SCALAR,
LENGTH, FLAGS
- Receives a message on SOCKET.
- send SOCKET, MSG,
FLAGS [ , TO ]
- Sends a message on the SOCKET.
- setsockopt SOCKET, LEVEL,
OPTNAME, OPTVAL
- Sets the requested socket option.
- shutdown SOCKET, HOW
- Shuts down a SOCKET.
- socket SOCKET, DOMAIN,
TYPE, PROTOCOL
- Creates a SOCKET in DOMAIN with TYPE and PROTOCOL.
- socketpair SOCKET1,
SOCKET2, DOMAIN, TYPE,
PROTOCOL
- Works the same as socket, but creates
a pair of bidirectional sockets.
|
System V IPC
You need to require "sys/ipc.ph" before
you can use the symbolic names of the operations.
- msgctl ID, CMD,
ARGS
- Calls msgctl(2). If CMD is &IPC_STAT
then ARGS must be a variable.
- msgget KEY, FLAGS
- Creates a message queue for KEY. Returns the
message queue identifier.
- msgsnd ID, MSG,
FLAGS
- Sends MSG to queue ID.
- msgrcv ID, $VAR,
SIZE, TYPE, FLAGS
- Receives a message from queue ID into VAR.
- semctl ID, SEMNUM,
CMD, ARG
- Calls semctl(2). If CMD is &IPC_STAT
of &GETALL then ARG must be a variable.
- semget KEY, NSEMS,
SIZE, FLAGS
- Creates a set of semaphores for KEY. Returns
the message semaphore identifier.
- semop KEY, ...
- Performs semaphore operations.
- shmctl ID, CMD,
ARG
- Calls shmctl(2). If CMD is &IPC_STAT
then ARG must be a variable.
- shmget KEY, SIZE,
FLAGS
- Creates shared memory. Returns the shared memory
segment identifier.
- shmread ID, $VAR,
POS, SIZE
- Reads at most SIZE bytes of the contents of
shared memory segment ID starting at offset POS into VAR.
- shmwrite ID, STRING,
POS, SIZE
- Writes at most SIZE bytes of STRING into the
contents of shared memory segment ID at offset POS.
|
Miscellaneous
defined EXPR
- Tests whether the lvalue EXPR has an actual
value.
- do FILENAME
- Executes FILENAME as a Perl script. See also
require in the section Subroutines, Packages
and Modules.
- dump [ LABEL ]
- Immediate core dump. When reincarnated, starts
at LABEL.
- eval { EXPR ;
... }
- Executes the code between {
and }. Traps runtime errors as described
with eval(EXPR),
in the section String Functions.
- local VARIABLE
- local ( LIST )
- Creates a scope for the listed variables local
to the enclosing block, subroutine or eval.
- my VARIABLE
- my ( LIST )
- Creates a scope for the listed variables lexically
local to the enclosing block, subroutine or eval.
- ref EXPR†
- Returns a true value if EXPR is a reference.
Returns the package name if EXPR has been blessed into a
package.
- reset [ EXPR ]
- Resets ?? searches so that
they work again. EXPR is a list of single letters. All variables
and arrays beginning with one of those letters are reset
to their pristine state. Only affects the current package.
- scalar EXPR
- Forces evaluation of EXPR in scalar context.
- undef [ LVALUE ]
- Undefines the LVALUE. Always returns the undefined
value.
- wantarray
- Returns true if the current context
expects an array value.
|