Schedules a SIGALRM
signal to be delivered after expr seconds. If expr is zero, cancels a pending timer.
Changes the working directory. expr can be a file name or a handle. Uses $ENV{HOME}
or $ENV{LOGNAME}
if expr is omitted.
Changes the root directory for the process and any future children.
Prints the value of list to STDERR
and exits with value $!
(if nonzero), or ($?>>
8) (if nonzero), or 255.
list defaults to the text "Died".
Included in the message are the name and line number of the program and the current line of input read. This information is suppressed if the last character of the last element of list is a newline.
Inside an eval, the error message is stuffed into $@
, and the eval is terminated returning undef. This makes die and eval the way to raise and catch exceptions.
Executes the system command in list; does not return. program can be used to explictly designate the program to execute the command.
Exits immediately with the value of expr, which defaults to zero. Calls END routines and object destructors before exiting.
Does a fork syscall. Returns the process ID of the child to the parent process (or undef on failure) and zero to the child process.
Returns the current login name as known by the system. If it returns false, use getpwuid.
Returns the process group for process pid. If pid is zero, or omitted, uses the current process.
Returns the process ID of the parent process.
Returns the current priority for a process, process group, or user. Use getpriority 0,0
to designate the current process.
Returns a list of filenames that match the C-shell pattern(s) in expr. <
pattern>
is a discouraged shorthand for glob("
pattern")
.
Use File::Glob
for more detailed globbing control.
Sends a signal to a list of processes. The first element of the list must be the signal to send, either numerically (e.g., 1), or its name as a string (e.g., HUP
). Negative signals affect process groups instead of processes.
Sets the process group for the pid. If pid is zero, affects the current process.
Sets the priority for a process, process group, or a user.
Causes the program to sleep for expr seconds, or forever if expr is omitted. Returns the number of seconds actually slept.
Calls the syscall specified in the first element of the list, passing the rest of the list as arguments to the call. Returns –1 (and sets $!
) on error.
Like exec, except that a fork is performed first, and the parent process waits for the child process to complete. During the wait, the signals SIGINT
and SIGQUIT
are passed to the child process.
Returns the exit status of the child process. Zero indicates success, not failure.
program can be used to explicitly designate the program to execute the command.
Returns a four-element list (user, system, cuser, csystem) giving the user and system times, in seconds, for this process and the children of this process.
Sets the umask for the process and returns the old one. If expr is a number, it must be an octal number. If expr is omitted, umask does not change the current umask value.
Waits for a child process to terminate and returns the process ID of the deceased process (–1 if none). The status is returned in $?
.
Performs the same function as the corresponding syscall. Returns 1 when process pid is dead, –1 if nonexistent.
Prints the list on STDERR
like die, but doesn’t exit. list defaults to "Warning: something's wrong".
Includes program info as with die.