|
|
|
![]() |
||||||||||||||
/
regexp/
See m/regexp/.
?regexp?
Like Return the absolute value of x.
accept(newSocket, genericSocket)
Execute the accept(2) system call. Return the packed address upon success, the undefined value otherwise. See also Deliver a SIGALRM after seconds-1 seconds, or cancel scheduled delivery if seconds is 0. Return the number of seconds remaining on the previously scheduled timer. See also Return the arctangent of y/x, expressed in radians in the range [-pi, pi].
Execute the bind(2) system call. name must be a packed address of the proper type for the socket. Return non-zero if successful, the undefined value otherwise. See also Disable CR/LF sequence translation, if any, for the file referenced by fileHandle.
Return current subroutine's context as Change working directory to expr (default is home directory). Return 1 upon success, 0 otherwise.
Change permissions of the given list of files to mode (an integer). Return the number of files successfully changed. See also chop [lvalue]
Remove the last character from a string (default: Set the owner and group ID's of the given list of files to uid and gid, respectively. Return the number of files changed. See also Return a string containing the character in the character set represented by the integer-valued expr. See also Cause dirName (default Close the given file or pipe, reset the line counter ( Close a directory opened by Call connect(2). name must be a packed address of the proper type for the socket. See also Return the cosine of expr (default Encrypt the string plainText with the two-letter string salt using the C library function, crypt(3), and return the result.
Remove the binding between a dbm file and the associative array, assocArray. DEPRECATED: use dbmopen(assocArray, dbName, mode)
Bind a dbm or ndbm database, dbName, to the associative array, assocArray. Create it with the protections specified by mode (as modified by the current umask) if the
database does not already exist. DEPRECATED: use Return true iff the lvalue expr is currently defined. See also Remove the entry with the given key from the associative array, assocArray, and return its value or the undefined value if no such entry was found.
Print the string value of list to STDERR, appending " Execute block, returning the value of the last command executed in it. When modified by a loop modifier, execute block once before testing the loop condition. See also do subroutine [(list)] &subroutine [(list)]
Execute subroutine, passing the arguments given in list, and return the value of the last expression evaluated in subroutine.
do fileName
Execute the perl commands contained in the file, fileName. If fileName is a relative pathname and cannot be found from the current directory, then search for it from each directory in Cause perl to dump core. If label is given, arrange to execute the command " Iterate over an associative array. Each time executed, return another element of associative array, assocArray, as a 2-element array consisting of the element's key and
value, or the null array if all elements have been returned. Subsequent execution will restart the iteration. See also Call endgrent(3). See also Call endhostent(3). See also Call endnetent(3). See also Call endprotoent(3). See also Call endpwent(3). See also Call endservent(3). See also For the first form, return 1 if fileHandle is at end-of-file, or unopened, otherwise return 0. If no arguments are specified, default to the last file read. If the null list is given,
default to the last file in the command-line series ( Parse and execute the perl code given by expr (default Execute the execve(2) system call, transforming the current process into a new one. The full pathname of the command to be executed may be given by progVar, a scalar variable (the first element of
argv is used by default), and the elements of the list, argv, form its command line. If given a single argument containing Bourne shell metacharacters, then execute the command " Exit immediately with the integer value of expr (0 by default). See also Return ex (x defaults to fcntl(fileHandle, function, scalar)
Execute the fcntl(2) system call, if available. This command requires the Return the file descriptor for fileHandle. See also Execute the flock(2) system call, if available. See also Execute the fork(2) system call. Return the child PID in the parent process and 0 in the child process. Return the undefined value if unsuccessful. See also Return the next character from the file referenced by fileHandle (STDIN by default), or the null string upon end-of-file. See also Return the current login name, as given in Return the packed sockaddr address of the other end of the connection, socket. See also Return the current process group of the process identified by pid (or the current process if pid is 0 or unspecified). See also Returns the process id of the parent process. See also Call getpriority(2) to return the current priority of a process, process group, or user. See also getgrgid(gid) Call the C library routine of the same name. If an appropriate group entry is found, return the list gethostbyaddr(hostAddr, addrType) Call the C library routine of the same name. If an appropriate host entry is found, return the list getnetbyaddr(netAddr, addrType) Call the C library routine of the same name. If an appropriate network entry is found, return the list getprotobynumber(number)
Call the C library routine of the same name. If an appropriate protocol entry is found, return the list getpwent Call the C library routine of the same name. If an appropriate login entry is found, return the list getservbyname(serviceName, proto) Call the C library routine of the same name. If an appropriate service entry is found, return the list Return the packed sockaddr address of the local end of the connection, socket. See also getsockopt(socket, level, optName)
Return the socket option requested or undefined if an error occurs. See also Convert the time as returned by Resume execution at the statement labeled label. The labelled statement cannot be nested inside a For each element of list, evaluate expr in a context in which Return the decimal value of expr (default index(str, substr[, position])
Return x+ Return the value of expr ( ioctl(fileHandle, function, scalar)
Execute the ioctl(2) system call. This command requires the Return the string formed by the concatenation of the elements of listOrArray, separated by the string expr. See also Return an array containing all the keys of the associative array, assocArray, or the number of keys, depending on context. See also Send signal sig (either an integer or a quoted signal name) to each of the processes (or process groups, if sig has a "-" prefix) whose ID's are given in list. Return the
number of processes successfully signalled. See also immediately terminate the innermost enclosing loop, or the loop labelled by label, if specified. Any continue block associated with the loop is not executed. See also Return the number of characters in expr ( Create a new name, newFile, for the file referred to by oldFile. Return 1 upon success, 0 otherwise. See also Execute the listen(2) system call. See also Create new instantiations of the lvalues in list, to be used by the innermost enclosing block, subroutine, Convert the time as returned by Return loge(x). The value x defaults to Equivalent to the In a scalar context, return 1 and set The default regexp is the last successfully marched regexp. The target string is Create directory dirname with permissions " Execute the msgctl(2) system call, Return the undefined value if the system call returns -1, the string "0 but true" if it returns 0, and the return value itself otherwise. See also Execute the msgget(2) system call. Return the message queue ID, or the undefined value on error. See also Execute the msgsnd(2) system call to send message msg to message queue id. msg must begin with a packed, long integer message type. See also msgrcv(id, var, size, type, flags)
Execute the msgrcv(2) system call to receive a message from message queue id into scalar variable var of maximum size size. If a message is received, the packed, long
integer message type is the first thing in var, and the maximum length of var is size plus the size of the message type. See also Execute the continue block, if any, associated with the innermost enclosing loop, or the loop labelled by label, if specified, and begin a new iteration of the loop. See also Return the decimal value of expr (default Open a file whose name is given by expr, or a pipe to a new process whose command line is given by expr, and associate it with fileHandle. expr defaults to $fileHandle.
Return non-zero upon success (the PID of the subprocess, in the case of a pipe), or the undefined value otherwise. If expr begins with one of " For a pipe, expr either starts with a " Open a directory named expr. Returns non-zero if successful, or the undefined value if not. See also Return the numeric ASCII value of the first character of expr (default: Pack an array or list into a binary structure. Return a string containing the structure. template is a string consisting of Open a pair of buffered, connected pipes like the corresponding system call. See also Return the last value of array, after removing it from the array, or the undefined value if array is empty. See also Print the comma-separated list of strings to the file referenced by fileHandle (the default is the currently selected output channel). If list is also omitted, print $_. Return
non-zero if successful. See also Equivalent to " Push the values of list onto the end of the array array, increasing the length of array by the length of list. See also q/string/ Alternate quotation operators: the q operator is equivalent to enclosing string in single quotes; the qq operator, double quotes; the qw operator, list notation; and the qx
operator, backquotes. Any non-alphanumeric delimiter can be used in place of "/". Also, if the delimiter is an opening bracket or parenthesis, the final delimiter is the corresponding closing punctuation.
Return a random fractional number between 0 and the value of expr (expr should be positive, and defaults to 1). See also read(fileHandle, scalar, length, [offset])
Read length bytes from fileHandle. Place the bytes into scalar, beginning at offset (0 by default). Return the number of bytes read, or the undefined value upon error. scalar
will be resized to exactly contain the bytes read. See also Return the next directory entry (all of the rest of the entries, in an array context) from the directory referred to by dirHandle. If there are no more entries, return the
undefined value (or the null list). See also Return the value of a symbolic link named by expr ( recv(socket, scalar, len, flags)
Receive a len-byte message on socket filehandle socket, placing the message into scalar, which will be resized to exactly contain the message. Return the address of the
sender, or the undefined value if there's an error. Takes the same flags as recv(2). See also Restart the enclosing loop block labelled with label (the default is the innermost enclosing loop) without evaluating the conditional again or the Change the name of file oldName to newName, returning 1 if successful, 0 otherwise. This command cannot rename a file in such a way that would require the file to change filesystems. See also Execute the file specified by expr ( Clear all variables in the current package that begin with the letters referred to by expr, or reset Return list from the current subroutine. See also In an array context, return an array value consisting of the elements of list in the opposite order. In a scalar context, return a string value consisting of the bytes of the first element of list
reversed. See also Set the current position to the beginning of the directory for rindex(str, substr[, position])
Return the position of the last occurrence of substr at or before position in str. See also Delete the directory dirName (default: s/[regexp]/replacement/[flags]
Replace the string matching regexp (by default the most recent successfully matched regular expression) with replacement in the operand specified by a =~ or !~ operator, or in Force expr to be interpreted in a scalar context and return the resulting value. See also seek(fileHandle, position, whence)
Position the file pointer for fileHandle to the position'th byte from the beginning of the file if whence is 0, from the current file pointer position if whence is 1, and from
the end of the file if whence is 2. Return 1 if successful, 0 otherwise. See also Set the current position for the Set the current default output fileHandle to fileHandle, and return the previously selected fileHandle. See also select(rmask, wmask, emask, timeout)
Suspend execution of the current process until I/O or exceptional conditions exist on the file descriptors specified by the file descriptor masks, rmask, wmask, and emask. Wait at most
timeout seconds, or forever if timeout is undef. Return the time left to wait (on most implementations, otherwise timeout). See also select(2), Call the System V IPC function semctl(2). If cmd is &IPC_STAT or &GETALL, then arg must be a variable which will hold the returned semget(key, nsems, size, flags)
Calls the System V IPC function semget(2). Returns the semaphore id, or the undefined value on error. See also Calls the System V IPC function semop(2) to perform semaphore operations such as signaling and waiting. optstring must be a packed array of semop structures. Return
non-zero if successful, or the undefined value on error. See also send(socket, msg, flags[, to])
Send a message an a socket. Takes the same flags as send(2). On unconnected sockets you must specify a destination to send to. Return the number of characters sent,
or the undefined value on error. See also sethostent(stayOpen) Call the C library routine of the same name. See also Set the current process group for the specified pid (default: 0, for the current process). Produce a fatal error if used on a machine that doesn't implement setpgrp(2). See also setpriority(which, who,priority)
Set the priority for a process, process group, or user. See also Call the C library routine of the same name. See also setprotoent(3), setpwent(3), setservent(3), setsockopt(socket, level, optName, optVal)
Set the socket option requested. Returns undefined if there is an error. optVal may be specified as Removes the first element from array (defaults to Call shmctl(2). If cmd is Call shmget(2). Return the shared memory segment id, or the undefined value upon error. See also Read size bytes into var, starting from the pos'th byte of shared memory segment id by attaching to it, copying out, and detaching from it. Return true if successful, false
upon error. See also shmwrite(id, string, pos, size)
Write the first size bytes of string into shared memory segment id, starting at the pos'th byte of id by attaching to it, copying in, and detaching from it. If string
is too short, nulls are written to fill out size bytes. Return true if successful, false upon error. See also Shut down a socket connection in the manner indicated by how, which has the same interpretation as shutdown(2). See also Return the sine of expr (default is Sleep for expr seconds (default: until the next signal). Return the number of seconds actually slept. See also socket(socket, domain, type, protocol)
Open a socket of the specified type and attach it to filehandle socket. domain, type, and protocol are specified the same as for socket
(2). Return true if successful, false otherwise. See also socketpair(sock1, sock2, domain, type, protocol)
Create an unnamed pair of sockets in the specified domain, of the specified type. domain, type, and protocol are specified the same as for the system call of the same
name. Returns true if successful, false otherwise. See also Sort list using subroutine as the comparison function (ascending lexicographic comparison, by default) and return the sorted array value. subroutine may be the name of
a non-recursive subroutine that returns a negative integer if the value referenced by the predefined value, $a, is ordered before that referenced by $b, a positive integer if after, and 0 otherwise. subroutine
may also be a scalar variable whose value names such a subroutine, or a block. See also splice(array, offset, [length, [list]])
Remove the elements designated by offset and length from array, and replace them with the elements of list, if any. Return the elements removed. If length is omitted,
remove everything from offset onward. See also split [(/regExp/, [expr[, limit]])]
Split expr ( Return a string formatted by the usual Return the square root of expr (default is Set the seed for the random number generator used by Return the array Preprocess scalar ($_ by default), optimizing internal pattern-matching mechanisms for performing pattern matching on it. See also Return the len-character substring of expr beginning at offset. A negative offset indicates a position relative to the end of the string. If len is omitted, return everything
up to the end of the string. If expr is an lvalue, the entire substr may function as an lvalue. See also Create a symbolic link, newFile, with contents oldFile. Return 1 upon success, 0 otherwise. See also Call the system call whose index is the first element of the list, passing it the remaining elements as arguments. See also sysread(fileHandle, scalar, length[, offset])
Read length bytes from fileHandle using read(2). Place the data into scalar, beginning at offset. Return the number of bytes actually read, or Fork a child process, executing " syswrite(fileHandle, scalar, length[, offset])
Write length bytes from scalar, beginning at offset, to fileHandle, using write(2). Return the number of bytes actually written, or Return the current file position for fileHandle (default is the file last read). See also Return the current directory position for dirHandle. See also tie variable, packageName, list
Bind variable to package packageName, which provides the implementation for the variable. Pass list to the "new" method of the package. See also Return the number of non-leap seconds since 00:00:00 UTC, January 1, 1970. See also Return a four-element array, ($user,$system,$cuser,$csystem), giving the user and system times, in seconds, for this process and its children. See also tr/searchList/replacementList/[{cds}] y/searchList/replacementList/[{cds}]
Translate all occurrences of the characters found in the search list with the corresponding character in the replacement list. Return the number of characters replaced or
deleted. If no string is specified via the =~ or !~ operator, the $_ string is translated. Modifiers are: c - complement the character set searchList; d - delete characters in searchList not found in
replacementList; s - replace sequences of characters translated to the same character to a single instance of the character. If replacementList is shorter than searchList and the d
modifier is not present, the replacementList is padded with its final character to increase its length to that of searchList. replacementList may be null, in which case searchList
is used as its value. See also truncate(expr, length)
Truncate the file referenced by fileHandle, or named by expr, to length.
Set the umask for the process to expr (a numeric value) and return its previous value. If expr is omitted, return the current umask. See also Undefine the value of the lvalue, expr, if any, which may be a scalar value, an array, or a subroutine name (prefixed with &). Always return the undefined value. See also Delete a list of files and return the number of files successfully deleted. See also Expand the string expr into an array value as directed by template. Return the array, or the first value of the array in a scalar context. template has the same format as for Break the binding between variable and its package. See Prepend list to the front of array, and return the number of elements in the resulting array. See also Change the access and modification times on each file of a list of files. The first two elements of list must be the numerical access and modification times. Return the
number of files successfully changed. See also Return an array containing the values in assocArray, or, in a scalar context, the number of values. See also Treating string expr as a vector of unsigned integers, return the bits bit-wide value starting at offset. May also be assigned to. bits must be a power of two from 1 to 32.
Wait for a child process to terminate. Return the PID of the deceased process, or -1 if there are no child processes. The child's termination status is returned in Wait for a particular child process to terminate. Returns the PID of the deceased process, or -1 if there is no such child process. The child's termination status is returned in Return true if the current subroutine is being evaluated in an array context. Return false in a scalar context. See also Print the string value of list to STDERR, appending " write()
Write a formatted record to the specified file, using the format associated with that file. By default the format for a file is the one having the same name is the filehandle,
but the format for the current output channel (see
Top of form processing is handled automatically: if there is insufficient room on the current page for the formatted record, the page is advanced by writing a form feed, a
special top-of-page format is used to format the new page header, and then the record is written. By default the top-of-page format is the name of the filehandle with
"_TOP" appended, but it may be dynamically set to the format of your choice by assigning the name to the $^ variable while the filehandle is selected. The number of
lines remaining on the current page is in variable $-, which can be set to 0 to force a new page. If fileHandle
is unspecified, output goes to the current default output channel, which starts out as STDOUT but may be changed by the
|
||||||||||||||
![]() |
||||||||||||||