Full documentation of builtin functions: perlfunc
Here are Perl's functions (including things that look like functions, like some keywords and named operators) arranged by category. Some functions appear in more than one place.
chomp
, chop
, chr
, crypt
, fc
, hex
, index
, lc
, lcfirst
, length
, oct
, ord
, pack
, q//
, qq//
, reverse
, rindex
, sprintf
, substr
, tr///
, uc
, ucfirst
, y///
fc
is available only if the "fc"
feature is enabled or if it is prefixed with CORE::
. The "fc"
feature is enabled automatically with a use v5.16
(or higher) declaration in the current scope.
abs
, atan2
, cos
, exp
, hex
, int
, log
, oct
, rand
, sin
, sqrt
, srand
binmode
, close
, closedir
, dbmclose
, dbmopen
, die
, eof
, fileno
, flock
, format
, getc
, print
, printf
, read
, readdir
, readline
rewinddir
, say
, seek
, seekdir
, select
, syscall
, sysread
, sysseek
, syswrite
, tell
, telldir
, truncate
, warn
, write
say
is available only if the "say"
feature is enabled or if it is prefixed with CORE::
. The "say"
feature is enabled automatically with a use v5.10
(or higher) declaration in the current scope.
pack
, read
, syscall
, sysread
, sysseek
, syswrite
, unpack
, vec
-X
, chdir
, chmod
, chown
, chroot
, fcntl
, glob
, ioctl
, link
, lstat
, mkdir
, open
, opendir
, readlink
, rename
, rmdir
, stat
, symlink
, sysopen
, umask
, unlink
, utime
break
, caller
, continue
, die
, do
, dump
, eval
, evalbytes
exit
, __FILE__
, goto
, last
, __LINE__
, next
, __PACKAGE__
, redo
, return
, sub
, __SUB__
, wantarray
break
is available only if you enable the experimental "switch"
feature or use the CORE::
prefix. The "switch"
feature also enables the default
, given
and when
statements, which are documented in "Switch Statements" in perlsyn. The "switch"
feature is enabled automatically with a use v5.10
(or higher) declaration in the current scope. In Perl v5.14 and earlier, continue
required the "switch"
feature, like the other keywords.
evalbytes
is only available with the "evalbytes"
feature (see feature) or if prefixed with CORE::
. __SUB__
is only available with the "current_sub"
feature or if prefixed with CORE::
. Both the "evalbytes"
and "current_sub"
features are enabled automatically with a use v5.16
(or higher) declaration in the current scope.
caller
, import
, local
, my
, our
, package
, state
, use
state
is available only if the "state"
feature is enabled or if it is prefixed with CORE::
. The "state"
feature is enabled automatically with a use v5.10
(or higher) declaration in the current scope.
alarm
, exec
, fork
, getpgrp
, getppid
, getpriority
, kill
, pipe
, qx//
, readpipe
, setpgrp
, setpriority
, sleep
, system
, times
, wait
, waitpid
bless
, dbmclose
, dbmopen
, package
, ref
, tie
, tied
, untie
, use
accept
, bind
, connect
, getpeername
, getsockname
, getsockopt
, listen
, recv
, send
, setsockopt
, shutdown
, socket
, socketpair
msgctl
, msgget
, msgrcv
, msgsnd
, semctl
, semget
, semop
, shmctl
, shmget
, shmread
, shmwrite