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