aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Jörg2023-07-26 09:55:34 +0200
committerHarald Jörg2023-07-26 09:55:34 +0200
commit04a930a08ce80d8dcc123f86a3f153f23ec31a29 (patch)
tree18427bbb62ebcdc3830968e1ba612800710910ad
parent65834b8f8d53402517da7fe2446f5bac0aa30c39 (diff)
downloademacs-04a930a08ce80d8dcc123f86a3f153f23ec31a29.tar.gz
emacs-04a930a08ce80d8dcc123f86a3f153f23ec31a29.zip
cperl-mode.el: Bring cperl-short-docs up to Perl 5.38.
* lisp/progmodes/cperl-mode.el (imenu-max-items): declare the variable to silence an elint warning. (cperl-short-docs): Reorder function description to match Perl's perlfunc documentation. Add missing shortdocs from perlfunc. Delete entries for operators which don't exist any more (EQ, NE and friends). Shorten docstring lines to 80 chars or less.
-rw-r--r--lisp/progmodes/cperl-mode.el477
1 files changed, 239 insertions, 238 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index c0e9cfde8e7..5dc49e4ebb4 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -7361,6 +7361,9 @@ One may build such TAGS files from CPerl mode menu."
7361 (nreverse list2)) 7361 (nreverse list2))
7362 list1))))) 7362 list1)))))
7363 7363
7364(defvar imenu-max-items nil
7365 "Max items in an imenu list. Defined in imenu.el.")
7366
7364(defun cperl-menu-to-keymap (menu) 7367(defun cperl-menu-to-keymap (menu)
7365 (let (list) 7368 (let (list)
7366 (cons 'keymap 7369 (cons 'keymap
@@ -7750,10 +7753,27 @@ $~ The name of the current report format.
7750... >> ... Bitwise shift right. 7753... >> ... Bitwise shift right.
7751... >>= ... Bitwise shift right assignment. 7754... >>= ... Bitwise shift right assignment.
7752... ? ... : ... Condition=if-then-else operator. 7755... ? ... : ... Condition=if-then-else operator.
7756... | ... Bitwise or.
7757... || ... Logical or.
7758... // ... Defined-or.
7759~ ... Unary bitwise complement.
7760... and ... Low-precedence synonym for &&.
7761... cmp ... String compare.
7762... eq ... String equality.
7763... ge ... String greater than or equal.
7764... gt ... String greater than.
7765... le ... String less than or equal.
7766... lt ... String less than.
7767... ne ... String inequality.
7768not ... Low-precedence synonym for ! - negation.
7769... or ... Low-precedence synonym for ||.
7770... x ... Repeat string or array.
7771x= ... Repetition assignment.
7772... xor ... Low-precedence synonym for exclusive or.
7753@ARGV Command line arguments (not including the command name - see $0). 7773@ARGV Command line arguments (not including the command name - see $0).
7754@INC List of places to look for perl scripts during do/include/use. 7774@INC List of places to look for perl scripts during do/include/use.
7755@_ Parameter array for subroutines; result of split() unless in list context. 7775@_ Parameter array for subroutines; result of split() unless in list context.
7756\\ Creates reference to what follows, like \\$var, or quotes non-\\w in strings. 7776\\ Creates reference to what follows, like \\$var. Quotes non-\\w in strings.
7757\\0 Octal char, e.g. \\033. 7777\\0 Octal char, e.g. \\033.
7758\\E Case modification terminator. See \\Q, \\L, and \\U. 7778\\E Case modification terminator. See \\Q, \\L, and \\U.
7759\\L Lowercase until \\E . See also \\l, lc. 7779\\L Lowercase until \\E . See also \\l, lc.
@@ -7771,12 +7791,8 @@ $~ The name of the current report format.
7771\\u Upcase the next character. See also \\U and \\l, ucfirst. 7791\\u Upcase the next character. See also \\U and \\l, ucfirst.
7772\\x Hex character, e.g. \\x1b. 7792\\x Hex character, e.g. \\x1b.
7773... ^ ... Bitwise exclusive or. 7793... ^ ... Bitwise exclusive or.
7774__END__ Ends program source.
7775__DATA__ Ends program source. 7794__DATA__ Ends program source.
7776__FILE__ Current (source) filename. 7795__END__ Ends program source.
7777__LINE__ Current line in current source.
7778__PACKAGE__ Current package.
7779__SUB__ Current sub.
7780ADJUST {...} Callback for object creation 7796ADJUST {...} Callback for object creation
7781ARGV Default multi-file input filehandle. <ARGV> is a synonym for <>. 7797ARGV Default multi-file input filehandle. <ARGV> is a synonym for <>.
7782ARGVOUT Output filehandle with -i flag. 7798ARGVOUT Output filehandle with -i flag.
@@ -7786,267 +7802,252 @@ CHECK { ... } Pseudo-subroutine executed after the script is compiled.
7786UNITCHECK { ... } 7802UNITCHECK { ... }
7787INIT { ... } Pseudo-subroutine executed before the script starts running. 7803INIT { ... } Pseudo-subroutine executed before the script starts running.
7788DATA Input filehandle for what follows after __END__ or __DATA__. 7804DATA Input filehandle for what follows after __END__ or __DATA__.
7789accept(NEWSOCKET,GENERICSOCKET) 7805abs [ EXPR ] absolute value function
7790alarm(SECONDS) 7806accept(NEWSOCKET,GENERICSOCKET) accept an incoming socket connect
7807alarm(SECONDS) schedule a SIGALRM
7791async(SUB NAME {}|SUB {}) Mark function as potentially asynchronous 7808async(SUB NAME {}|SUB {}) Mark function as potentially asynchronous
7792atan2(X,Y) 7809atan2(X,Y) arctangent of Y/X in the range -PI to PI
7793await(ASYNCEXPR) Yield result of Future 7810await(ASYNCEXPR) Yield result of Future
7794bind(SOCKET,NAME) 7811bind(SOCKET,NAME) binds an address to a socket
7795binmode(FILEHANDLE) 7812binmode(FILEHANDLE) prepare binary files for I/O
7813bless REFERENCE [, PACKAGE] Makes reference into an object of a package.
7796break Break out of a given/when statement 7814break Break out of a given/when statement
7797caller[(LEVEL)] 7815caller[(LEVEL)] get context of the current subroutine call
7798chdir(EXPR) 7816chdir(EXPR) change your current working directory
7799chmod(LIST) 7817chmod(LIST) changes the permissions on a list of files
7800chop[(LIST|VAR)] 7818chomp [LIST] Strips $/ off LIST/$_. Returns count.
7801chown(LIST) 7819chop[(LIST|VAR)] remove the last character from a string
7802chroot(FILENAME) 7820chown(LIST) change the ownership on a list of files
7803class NAME Introduce a class. 7821chr [NUMBER] Converts a number to char with the same ordinal.
7804close(FILEHANDLE) 7822chroot(FILENAME) make directory new root for path lookups
7805closedir(DIRHANDLE) 7823class NAME Introduce an object class.
7806... cmp ... String compare. 7824close(FILEHANDLE) close file (or pipe or socket) handle
7807connect(SOCKET,NAME) 7825closedir(DIRHANDLE) close directory handle
7826connect(SOCKET,NAME) connect to a remote socket
7808continue of { block } continue { block }. Is executed after `next' or at end. 7827continue of { block } continue { block }. Is executed after `next' or at end.
7809cos(EXPR) 7828cos(EXPR) cosine function
7810crypt(PLAINTEXT,SALT) 7829crypt(PLAINTEXT,SALT) one-way passwd-style encryption
7811dbmclose(%HASH) 7830dbmclose(%HASH) breaks binding on a tied dbm file
7812dbmopen(%HASH,DBNAME,MODE) 7831dbmopen(%HASH,DBNAME,MODE) create binding on a tied dbm file
7813default { ... } default case for given/when block 7832defined(EXPR) test whether a value, variable, or function is defined
7814defer { ... } run this block after the containing block. 7833delete($HASH{KEY}) deletes a value from a hash
7815defined(EXPR) 7834die(LIST) raise an exception or bail out
7816delete($HASH{KEY})
7817die(LIST)
7818do { ... }|SUBR while|until EXPR executes at least once 7835do { ... }|SUBR while|until EXPR executes at least once
7819do(EXPR|SUBR([LIST])) (with while|until executes at least once) 7836do(EXPR|SUBR([LIST])) (with while|until executes at least once)
7820dump LABEL 7837dump LABEL create an immediate core dump
7821each(%HASH) 7838each(%HASH) retrieve the next key/value pair from a hash
7822endgrent 7839endgrent be done using group file
7823endhostent 7840endhostent be done using hosts file
7824endnetent 7841endnetent be done using networks file
7825endprotoent 7842endprotoent be done using protocols file
7826endpwent 7843endpwent be done using passwd file
7827endservent 7844endservent be done using services file
7828eof[([FILEHANDLE])] 7845eof[([FILEHANDLE])] test a filehandle for its end
7829... eq ... String equality. 7846eval(EXPR) or eval { BLOCK } catch exceptions or compile and run code
7830eval(EXPR) or eval { BLOCK }
7831evalbytes See eval. 7847evalbytes See eval.
7832exec([TRUENAME] ARGV0, ARGVs) or exec(SHELL_COMMAND_LINE) 7848exec([TRUENAME] ARGV0, ARGVs) or exec(SHELL_COMMAND_LINE)
7833exit(EXPR) 7849exists $HASH{KEY} True if the key exists.
7834exp(EXPR) 7850exit(EXPR) terminate this program
7851exp(EXPR) raise e to a power
7852fc EXPR Returns the casefolded version of EXPR.
7835fcntl(FILEHANDLE,FUNCTION,SCALAR) 7853fcntl(FILEHANDLE,FUNCTION,SCALAR)
7836field VAR [:param[(NAME)]] [=EXPR] declare an object attribute 7854field VAR [:param[(NAME)]] [=EXPR] declare an object attribute
7837fileno(FILEHANDLE) 7855__FILE__ Current (source) filename.
7838flock(FILEHANDLE,OPERATION) 7856fileno(FILEHANDLE) return file descriptor from filehandle
7839for (EXPR;EXPR;EXPR) { ... } 7857flock(FILEHANDLE,OPERATION) lock an entire file with an advisory lock
7840foreach [VAR] (@ARRAY) { ... } 7858fork create a new process just like this one
7841fork 7859format [NAME] = Start of output format. Ended by a single dot (.) on a line.
7842... ge ... String greater than or equal. 7860formline PICTURE, LIST Backdoor into \"format\" processing.
7843getc[(FILEHANDLE)] 7861getc[(FILEHANDLE)] get the next character from the filehandle
7844getgrent 7862getgrent get group record given group user ID
7845getgrgid(GID) 7863getgrgid(GID) get group record given group user ID
7846getgrnam(NAME) 7864getgrnam(NAME) get group record given group name
7847gethostbyaddr(ADDR,ADDRTYPE) 7865gethostbyaddr(ADDR,ADDRTYPE) get host record given name
7848gethostbyname(NAME) 7866gethostbyname(NAME) get host record given name
7849gethostent 7867gethostent get next hosts record
7850getlogin 7868getlogin return who logged in at this tty
7851getnetbyaddr(ADDR,ADDRTYPE) 7869getnetbyaddr(ADDR,ADDRTYPE) get network record given its address
7852getnetbyname(NAME) 7870getnetbyname(NAME) get networks record given name
7853getnetent 7871getnetent get next networks record
7854getpeername(SOCKET) 7872getpeername(SOCKET) find the other end of a socket connection
7855getpgrp(PID) 7873getpgrp(PID) get process group
7856getppid 7874getppid get parent process ID
7857getpriority(WHICH,WHO) 7875getpriority(WHICH,WHO) get current nice value
7858getprotobyname(NAME) 7876getprotobyname(NAME) get protocol record given name
7859getprotobynumber(NUMBER) 7877getprotobynumber(NUMBER) get protocol record numeric protocol
7860getprotoent 7878getprotoent get next protocols record
7861getpwent 7879getpwent get next passwd record
7862getpwnam(NAME) 7880getpwnam(NAME) get passwd record given user login name
7863getpwuid(UID) 7881getpwuid(UID) get passwd record given user ID
7864getservbyname(NAME,PROTO) 7882getservbyname(NAME,PROTO) get services record given its name
7865getservbyport(PORT,PROTO) 7883getservbyport(PORT,PROTO) get services record given numeric port
7866getservent 7884getservent get next services record
7867getsockname(SOCKET) 7885getsockname(SOCKET) retrieve the sockaddr for a given socket
7868getsockopt(SOCKET,LEVEL,OPTNAME) 7886getsockopt(SOCKET,LEVEL,OPTNAME) get socket options on a given socket
7869given (EXPR) { [ when (EXPR) { ... } ]+ [ default { ... } ]? } 7887glob EXPR expand filenames using wildcards. Synonym of <EXPR>.
7870gmtime(EXPR) 7888gmtime(EXPR) convert UNIX time into record or string using Greenwich time
7871goto LABEL 7889goto LABEL create spaghetti code
7872... gt ... String greater than. 7890grep EXPR,LIST or grep {BLOCK} LIST Filters LIST via EXPR/BLOCK.
7873hex(EXPR) 7891hex(EXPR) convert a hexadecimal string to a number
7874if (EXPR) { ... } [ elsif (EXPR) { ... } ... ] [ else { ... } ] or EXPR if EXPR 7892import patch a module's namespace into your own
7875index(STR,SUBSTR[,OFFSET]) 7893index(STR,SUBSTR[,OFFSET]) find a substring within a string
7876int(EXPR) 7894int(EXPR) get the integer portion of a number
7877ioctl(FILEHANDLE,FUNCTION,SCALA)R 7895ioctl(FILEHANDLE,FUNCTION,SCALAR) device control system call
7878join(EXPR,LIST) 7896join(EXPR,LIST) join a list into a string using a separator
7879keys(%HASH) 7897keys(%HASH) retrieve list of indices from a hash
7880kill(LIST) 7898kill(LIST) send a signal to a process or process group
7881last [LABEL] 7899last [LABEL] exit a block prematurely
7882... le ... String less than or equal. 7900lc [ EXPR ] Returns lowercased EXPR.
7883length(EXPR) 7901lcfirst [ EXPR ] Returns EXPR with lower-cased first letter.
7884link(OLDFILE,NEWFILE) 7902length(EXPR) return the number of characters in a string
7885listen(SOCKET,QUEUESIZE) 7903__LINE__ Current line in current source.
7886local(LIST) 7904link(OLDFILE,NEWFILE) create a hard link in the filesystem
7887localtime(EXPR) 7905listen(SOCKET,QUEUESIZE) register your socket as a server
7888log(EXPR) 7906local(LIST) create a temporary value for a global variable
7889lstat(EXPR|FILEHANDLE|VAR) 7907localtime(EXPR) convert UNIX time into record or string using local time
7890... lt ... String less than. 7908lock(THING) get a thread lock on a variable, subroutine, or method
7891m/PATTERN/iogsmx 7909log(EXPR) retrieve the natural logarithm for a number
7910lstat(EXPR|FILEHANDLE|VAR) stat a symbolic link
7911m/PATTERN/iogsmx match a string with a regular expression pattern
7912map EXPR, LIST or map {BLOCK} LIST Applies EXPR/BLOCK to elts of LIST.
7892method [NAME [(signature)]] { BODY } method NAME; 7913method [NAME [(signature)]] { BODY } method NAME;
7893mkdir(FILENAME,MODE) 7914mkdir(FILENAME,MODE) create a directory
7894msgctl(ID,CMD,ARG) 7915msgctl(ID,CMD,ARG) SysV IPC message control operations
7895msgget(KEY,FLAGS) 7916msgget(KEY,FLAGS) get SysV IPC message queue
7896msgrcv(ID,VAR,SIZE,TYPE.FLAGS) 7917msgrcv(ID,VAR,SIZE,TYPE.FLAGS) receive a SysV IPC message from a message queue
7897msgsnd(ID,MSG,FLAGS) 7918msgsnd(ID,MSG,FLAGS) send a SysV IPC message to a message queue
7898my VAR or my (VAR1,...) Introduces a lexical variable ($VAR, @ARR, or %HASH). 7919my VAR or my (VAR1,...) Introduces a lexical variable ($VAR, @ARR, or %HASH).
7899our VAR or our (VAR1,...) Lexically enable a global variable ($V, @A, or %H). 7920next [LABEL] iterate a block prematurely
7900... ne ... String inequality. 7921no MODULE [SYMBOL1, ...] Partial reverse for `use'. Runs `unimport' method.
7901next [LABEL] 7922oct(EXPR) convert a string to an octal number
7902oct(EXPR) 7923open(FILEHANDLE[,EXPR]) open a file, pipe, or descriptor
7903open(FILEHANDLE[,EXPR]) 7924opendir(DIRHANDLE,EXPR) open a directory
7904opendir(DIRHANDLE,EXPR)
7905ord(EXPR) ASCII value of the first char of the string. 7925ord(EXPR) ASCII value of the first char of the string.
7906pack(TEMPLATE,LIST) 7926our VAR or our (VAR1,...) Lexically enable a global variable ($V, @A, or %H).
7927pack(TEMPLATE,LIST) convert a list into a binary representation
7907package NAME Introduces package context. 7928package NAME Introduces package context.
7929__PACKAGE__ Current package.
7908pipe(READHANDLE,WRITEHANDLE) Create a pair of filehandles on ends of a pipe. 7930pipe(READHANDLE,WRITEHANDLE) Create a pair of filehandles on ends of a pipe.
7909pop(ARRAY) 7931pop(ARRAY) remove the last element from an array and return it
7910print [FILEHANDLE] [(LIST)] 7932pos STRING Set/Get end-position of the last match over this string, see \\G.
7911printf [FILEHANDLE] (FORMAT,LIST) 7933print [FILEHANDLE] [(LIST)] output a list to a filehandle
7912push(ARRAY,LIST) 7934printf [FILEHANDLE] (FORMAT,LIST) output a formatted list to a filehandle
7935prototype \\&SUB Returns prototype of the function given a reference.
7936push(ARRAY,LIST) append one or more elements to an array
7913q/STRING/ Synonym for \\='STRING\\=' 7937q/STRING/ Synonym for \\='STRING\\='
7914qq/STRING/ Synonym for \"STRING\" 7938qq/STRING/ Synonym for \"STRING\"
7939qr/PATTERN/ compile pattern
7940quotemeta quote regular expression magic characters
7941qw/STRING/ quote a list of words
7915qx/STRING/ Synonym for \\=`STRING\\=` 7942qx/STRING/ Synonym for \\=`STRING\\=`
7916rand[(EXPR)] 7943rand[(EXPR)] retrieve the next pseudorandom number
7917read(FILEHANDLE,SCALAR,LENGTH[,OFFSET]) 7944read(FILEHANDLE,SCALAR,LENGTH[,OFFSET]) fixed-length buffered input
7918readdir(DIRHANDLE) 7945readdir(DIRHANDLE) get a directory from a directory handle
7919readlink(EXPR) 7946readline FH Synonym of <FH>.
7920recv(SOCKET,SCALAR,LEN,FLAGS) 7947readlink(EXPR) determine where a symbolic link is pointing
7921redo [LABEL] 7948readpipe CMD Synonym of \\=`CMD\\=`.
7922rename(OLDNAME,NEWNAME) 7949recv(SOCKET,SCALAR,LEN,FLAGS) receive a message over a Socket
7923require [FILENAME | PERL_VERSION] 7950redo [LABEL] start this loop iteration over again
7924reset[(EXPR)] 7951ref [ EXPR ] Type of EXPR when dereferenced.
7925return(LIST) 7952rename(OLDNAME,NEWNAME) change a filename
7926reverse(LIST) 7953require [FILENAME | PERL_VERSION] load from a library at runtime
7927rewinddir(DIRHANDLE) 7954reset[(EXPR)] clear all variables of a given name
7928rindex(STR,SUBSTR[,OFFSET]) 7955return(LIST) get out of a function early
7929rmdir(FILENAME) 7956reverse(LIST) flip a string or a list
7930s/PATTERN/REPLACEMENT/gieoxsm 7957rewinddir(DIRHANDLE) reset directory handle
7931say [FILEHANDLE] [(LIST)] 7958rindex(STR,SUBSTR[,OFFSET]) right-to-left substring search
7932scalar(EXPR) 7959rmdir(FILENAME) remove a directory
7933seek(FILEHANDLE,POSITION,WHENCE) 7960s/PATTERN/REPLACEMENT/gieoxsm replace a pattern with a string
7934seekdir(DIRHANDLE,POS) 7961say [FILEHANDLE] [(LIST)] output a list, appending a newline
7935select(FILEHANDLE | RBITS,WBITS,EBITS,TIMEOUT) 7962scalar(EXPR) force a scalar context
7936semctl(ID,SEMNUM,CMD,ARG) 7963seek(FILEHANDLE,POSITION,WHENCE) reposition file pointer
7937semget(KEY,NSEMS,SIZE,FLAGS) 7964seekdir(DIRHANDLE,POS) reposition directory pointer
7938semop(KEY,...) 7965select(FILEHANDLE) reset default output or do I/O multiplexing
7939send(SOCKET,MSG,FLAGS[,TO]) 7966select(RBITS,WBITS,EBITS,TIMEOUT) do I/O multiplexing
7940setgrent 7967semctl(ID,SEMNUM,CMD,ARG) SysV semaphore control operations
7941sethostent(STAYOPEN) 7968semget(KEY,NSEMS,SIZE,FLAGS) get set of SysV semaphores
7942setnetent(STAYOPEN) 7969semop(KEY,...) SysV semaphore operations
7943setpgrp(PID,PGRP) 7970send(SOCKET,MSG,FLAGS[,TO]) send a message over a socket
7944setpriority(WHICH,WHO,PRIORITY) 7971setgrent prepare group file for use
7945setprotoent(STAYOPEN) 7972sethostent(STAYOPEN) prepare hosts file for use
7946setpwent 7973setnetent(STAYOPEN) prepare networks file for use
7947setservent(STAYOPEN) 7974setpgrp(PID,PGRP) set the process group of a process
7948setsockopt(SOCKET,LEVEL,OPTNAME,OPTVAL) 7975setpriority(WHICH,WHO,PRIORITY) Process set a process\\='s nice value
7949shift[(ARRAY)] 7976setprotoent(STAYOPEN) etwork prepare protocols file for use
7950shmctl(ID,CMD,ARG) 7977setpwent prepare passwd file for use
7951shmget(KEY,SIZE,FLAGS) 7978setservent(STAYOPEN) prepare services file for use
7952shmread(ID,VAR,POS,SIZE) 7979setsockopt(SOCKET,LEVEL,OPTNAME,OPTVAL) set some socket options
7953shmwrite(ID,STRING,POS,SIZE) 7980shift[(ARRAY)] remove the first element of an array, and return it
7954shutdown(SOCKET,HOW) 7981shmctl(ID,CMD,ARG) SysV shared memory operations
7955sin(EXPR) 7982shmget(KEY,SIZE,FLAGS) get SysV shared memory segment identifier
7956sleep[(EXPR)] 7983shmread(ID,VAR,POS,SIZE) read SysV shared memory
7957socket(SOCKET,DOMAIN,TYPE,PROTOCOL) 7984shmwrite(ID,STRING,POS,SIZE) write SysV shared memory
7958socketpair(SOCKET1,SOCKET2,DOMAIN,TYPE,PROTOCOL) 7985shutdown(SOCKET,HOW) close down just half of a socket connection
7959sort [SUBROUTINE] (LIST) 7986sin(EXPR) return the sine of a number
7960splice(ARRAY,OFFSET[,LENGTH[,LIST]]) 7987sleep[(EXPR)] block for some number of seconds
7961split[(/PATTERN/[,EXPR[,LIMIT]])] 7988socket(SOCKET,DOMAIN,TYPE,PROTOCOL) create a socket
7962sprintf(FORMAT,LIST) 7989socketpair(SOCKET1,SOCKET2,DOMAIN,TYPE,PROTOCOL) create a pair of sockets
7963sqrt(EXPR) 7990sort [SUBROUTINE] (LIST) sort a list of values
7964srand(EXPR) 7991splice(ARRAY,OFFSET[,LENGTH[,LIST]]) add or remove elements anywhere
7965stat(EXPR|FILEHANDLE|VAR) 7992split[(/PATTERN/[,EXPR[,LIMIT]])] split up a string using a regexp
7993sprintf(FORMAT,LIST) formatted print into a string
7994sqrt(EXPR) square root function
7995srand(EXPR) seed the random number generator
7996stat(EXPR|FILEHANDLE|VAR) get a file\\='s status information
7966state VAR or state (VAR1,...) Introduces a static lexical variable 7997state VAR or state (VAR1,...) Introduces a static lexical variable
7967study[(SCALAR)] 7998study[(SCALAR)] no-op, formerly optimized input data for repeated searches
7968sub [NAME [(format)]] { BODY } sub NAME [(format)]; sub [(format)] {...} 7999sub [NAME [(format)]] { BODY } sub NAME [(format)]; sub [(format)] {...}
7969substr(EXPR,OFFSET[,LEN]) 8000__SUB__ the current subroutine, or C<undef> if not in a subroutine
7970symlink(OLDFILE,NEWFILE) 8001substr(EXPR,OFFSET[,LEN]) get or alter a portion of a string
7971syscall(LIST) 8002symlink(OLDFILE,NEWFILE) create a symbolic link to a file
7972sysread(FILEHANDLE,SCALAR,LENGTH[,OFFSET]) 8003syscall(LIST) execute an arbitrary system call
8004sysopen FH, FILENAME, MODE [, PERM] (MODE is numeric, see Fcntl.)
8005sysread(FILEHANDLE,SCALAR,LENGTH[,OFFSET]) fixed-length unbuffered input
8006sysseek(FILEHANDLE,POSITION,WHENCE) position I/O pointer on handle
7973system([TRUENAME] ARGV0 [,ARGV]) or system(SHELL_COMMAND_LINE) 8007system([TRUENAME] ARGV0 [,ARGV]) or system(SHELL_COMMAND_LINE)
7974syswrite(FILEHANDLE,SCALAR,LENGTH[,OFFSET]) 8008syswrite(FILEHANDLE,SCALAR,LENGTH[,OFFSET]) fixed-length unbuffered output
7975tell[(FILEHANDLE)] 8009tell[(FILEHANDLE)] get current seekpointer on a filehandle
7976telldir(DIRHANDLE) 8010telldir(DIRHANDLE) get current seekpointer on a directory handle
7977time 8011tie VAR, CLASS, LIST Hide an object behind a simple Perl variable.
7978times 8012tied Returns internal object for a tied data.
7979tr/SEARCHLIST/REPLACEMENTLIST/cds 8013time return number of seconds since 1970
7980truncate(FILE|EXPR,LENGTH) 8014times return elapsed time for self and child processes
7981umask[(EXPR)] 8015tr/SEARCHLIST/REPLACEMENTLIST/cds transliterate a string
7982undef[(EXPR)] 8016truncate(FILE|EXPR,LENGTH) shorten a file
7983unless (EXPR) { ... } [ else { ... } ] or EXPR unless EXPR 8017uc [ EXPR ] Returns upcased EXPR.
7984unlink(LIST) 8018ucfirst [ EXPR ] Returns EXPR with upcased first letter.
7985unpack(TEMPLATE,EXPR) 8019umask[(EXPR)] set file creation mode mask
7986unshift(ARRAY,LIST) 8020undef[(EXPR)] remove a variable or function definition
7987until (EXPR) { ... } EXPR until EXPR 8021unlink(LIST) remove one link to a file
7988utime(LIST) 8022unpack(TEMPLATE,EXPR) convert binary structure into normal perl variables
7989values(%HASH) 8023unshift(ARRAY,LIST) prepend more elements to the beginning of a list
7990vec(EXPR,OFFSET,BITS) 8024untie VAR Unlink an object from a simple Perl variable.
7991wait 8025use MODULE [SYMBOL1, ...] Compile-time `require' with consequent `import'.
7992waitpid(PID,FLAGS) 8026utime(LIST) set a file\\='s last access and modify times
8027values(%HASH) return a list of the values in a hash
8028vec(EXPR,OFFSET,BITS) test or set particular bits in a string
8029wait wait for any child process to die
8030waitpid(PID,FLAGS) wait for a particular child process to die
7993wantarray Returns true if the sub/eval is called in list context. 8031wantarray Returns true if the sub/eval is called in list context.
7994warn(LIST) 8032warn(LIST) print debugging info
7995while (EXPR) { ... } EXPR while EXPR 8033write[(EXPR|FILEHANDLE)] print a picture record
7996write[(EXPR|FILEHANDLE)] 8034y/SEARCHLIST/REPLACEMENTLIST/ transliterate a string
7997... x ... Repeat string or array.
7998x= ... Repetition assignment.
7999y/SEARCHLIST/REPLACEMENTLIST/
8000... | ... Bitwise or.
8001... || ... Logical or.
8002... // ... Defined-or.
8003~ ... Unary bitwise complement.
8004#! OS interpreter indicator. If contains `perl', used for options, and -x. 8035#! OS interpreter indicator. If contains `perl', used for options, and -x.
8005AUTOLOAD {...} Shorthand for `sub AUTOLOAD {...}'. 8036AUTOLOAD {...} Shorthand for `sub AUTOLOAD {...}'.
8006CORE:: Prefix to access builtin function if imported sub obscures it. 8037CORE:: Prefix to access builtin function if imported sub obscures it.
8007SUPER:: Prefix to lookup for a method in @ISA classes. 8038SUPER:: Prefix to lookup for a method in @ISA classes.
8008DESTROY Shorthand for `sub DESTROY {...}'. 8039DESTROY Shorthand for `sub DESTROY {...}'.
8009... EQ ... Obsolete synonym of `eq'.
8010... GE ... Obsolete synonym of `ge'.
8011... GT ... Obsolete synonym of `gt'.
8012... LE ... Obsolete synonym of `le'.
8013... LT ... Obsolete synonym of `lt'.
8014... NE ... Obsolete synonym of `ne'.
8015abs [ EXPR ] absolute value
8016... and ... Low-precedence synonym for &&.
8017bless REFERENCE [, PACKAGE] Makes reference into an object of a package.
8018chomp [LIST] Strips $/ off LIST/$_. Returns count. Special if $/ eq \\='\\='!
8019chr Converts a number to char with the same ordinal.
8020else Part of if/unless {BLOCK} elsif {BLOCK} else {BLOCK}. 8040else Part of if/unless {BLOCK} elsif {BLOCK} else {BLOCK}.
8021elsif Part of if/unless {BLOCK} elsif {BLOCK} else {BLOCK}. 8041elsif Part of if/unless {BLOCK} elsif {BLOCK} else {BLOCK}.
8022exists $HASH{KEY} True if the key exists. 8042default { ... } default case for given/when block
8023fc EXPR Returns the casefolded version of EXPR. 8043defer { ... } run this block after the containing block.
8024format [NAME] = Start of output format. Ended by a single dot (.) on a line. 8044for (EXPR;EXPR;EXPR) { ... }
8025formline PICTURE, LIST Backdoor into \"format\" processing. 8045foreach [VAR] (@ARRAY) { ... }
8026glob EXPR Synonym of <EXPR>. 8046given (EXPR) { [ when (EXPR) { ... } ]+ [ default { ... } ]? }
8027lc [ EXPR ] Returns lowercased EXPR. 8047if (EXPR) { ... } [ elsif (EXPR) { ... } ... ] [ else { ... } ] or EXPR if EXPR
8028lcfirst [ EXPR ] Returns EXPR with lower-cased first letter. 8048unless (EXPR) { ... } [ else { ... } ] or EXPR unless EXPR
8029grep EXPR,LIST or grep {BLOCK} LIST Filters LIST via EXPR/BLOCK. 8049until (EXPR) { ... } EXPR until EXPR
8030map EXPR, LIST or map {BLOCK} LIST Applies EXPR/BLOCK to elts of LIST. 8050while (EXPR) { ... } EXPR while EXPR
8031no MODULE [SYMBOL1, ...] Partial reverse for `use'. Runs `unimport' method.
8032not ... Low-precedence synonym for ! - negation.
8033... or ... Low-precedence synonym for ||.
8034pos STRING Set/Get end-position of the last match over this string, see \\G.
8035prototype FUNC Returns the prototype of a function as a string, or undef.
8036quotemeta [ EXPR ] Quote regexp metacharacters.
8037qw/WORD1 .../ Synonym of split(\\='\\=', \\='WORD1 ...\\=')
8038readline FH Synonym of <FH>.
8039readpipe CMD Synonym of \\=`CMD\\=`.
8040ref [ EXPR ] Type of EXPR when dereferenced.
8041sysopen FH, FILENAME, MODE [, PERM] (MODE is numeric, see Fcntl.)
8042tie VAR, CLASS, LIST Hide an object behind a simple Perl variable.
8043tied Returns internal object for a tied data.
8044uc [ EXPR ] Returns upcased EXPR.
8045ucfirst [ EXPR ] Returns EXPR with upcased first letter.
8046untie VAR Unlink an object from a simple Perl variable.
8047use MODULE [SYMBOL1, ...] Compile-time `require' with consequent `import'.
8048... xor ... Low-precedence synonym for exclusive or.
8049prototype \\&SUB Returns prototype of the function given a reference.
8050=head1 Top-level heading. 8051=head1 Top-level heading.
8051=head2 Second-level heading. 8052=head2 Second-level heading.
8052=head3 Third-level heading. 8053=head3 Third-level heading.