SEARCH RESULTS

Functions

sysseek - position I/O pointer on handle used with sysread and syswrite

The values for WHENCE are 0 to set the new position to POSITION, 1 to set the it to the current position ... ; thus sysseek returns true on success and false on failure, yet you can still easily determine the new

link OLDFILE,NEWFILE Creates a new filename linked to the old filename.

write - print a picture record

record, the page is advanced by writing a form feed, a special top-of-page format is used to format the new ... The number of lines remaining on the current page is in variable $-, which can be set to 0 to force a new

push - append one or more elements to an array

Returns the new number of elements in the array.

symlink OLDFILE,NEWFILE Creates a new filename symbolically linked to the old filename.

join - join a list into a string using a separator

separate strings of LIST into a single string with fields separated by the value of EXPR, and returns that new

tie - bind a variable to an object class

Any additional arguments are passed to the new method of the class (meaning TIESCALAR, TIEHANDLE, TIEARRAY ... The object returned by the new method is also returned by the tie function, which would be useful if

chroot - make directory new root for path lookups

chroot This function works like the system call by the same name: it makes the named directory the new

unshift - prepend more elements to the beginning of a list

Prepends list to the front of the array, and returns the new number of elements in the array.

sort - sort a list of values

first integer after the first = sign, or the # whole record case-insensitively otherwise @new ... @caps = (); for (@old) { push @nums, /=(\d+)/; push @caps, uc($_); } @new

fileno - return file descriptor from filehandle

THAT)) { print "THIS and THAT are dups\n"; } (Filehandles connected to memory objects via new

die - raise an exception or bail out

\n" unless chdir '/usr/spool/news'; chdir '/usr/spool/news' or die "Can't cd to spool: $! ... Here's an example: eval { ... ; die Some::Module::Exception->new( FOO => "bar" ) }; if ($@)

reverse - flip a string or a list

Also, this has to unwind one hash and build a whole new one, which may take some time on a large hash

read - fixed-length buffered input from a filehandle

If SCALAR needs growing, the new bytes will be zero bytes.

our - declare and assign a package variable (lexical scoping)

"1.00"; Note that this attribute also has the effect of making the global readonly when the first new ... interpreter is cloned (for example, when the first new thread is created).

fork - create a new process just like this one

fork Does a fork(2) system call to create a new process running the same program at the same point.

dump - create an immediate core dump

When the new binary is executed it will begin by executing a goto LABEL (with all the restrictions that

caller - get context of the current subroutine call

$hasargs is true if a new instance of @_ was set up for the frame.

alarm - schedule a SIGALRM

previous timer, and an argument of 0 may be supplied to cancel the previous timer without starting a new

seek - reposition file pointer for random-access I/O

The values for WHENCE are 0 to set the new position in bytes to POSITION, 1 to set it to the current

dbmopen - create binding on a tied dbm file

Example: # print out history file offsets dbmopen(%HIST,'/usr/lib/news/history',0666); while

require - load in external functions from a library at runtime

Here is a typical code layout: # In Foo.pm package Foo; sub new { ... } sub Foo::INC ... { my ($self, $filename) = @_; ... } # In the main program push @INC, new

sysopen

do not work under OS/390 & VM/ESA Unix and on the Macintosh; you probably don't want to use them in new

crypt - one-way passwd-style encryption

When choosing a new salt create a random two character string whose characters come from the set [./0

open - open a file, pipe, or descriptor

If FILEHANDLE is an undefined lexical (my) variable the variable is assigned a reference to a new anonymous ... In the child process the filehandle isn't opened--i/o happens from/to the new STDOUT or STDIN.