Perl Functions by Category
Here are Perl’s functions and function-like keywords, arranged by category. Note that some functions appear in more than one category.
- Scalar manipulation
chomp,chop,chr,crypt,hex,index,lc,lcfirst,length,oct,ord,pack,q//,qq//,reverse,rindex,sprintf,substr,tr///,uc,ucfirst,y///- Regular expressions and pattern matching
m//,pos,qr//,quotemeta,s///,split,study- Numeric functions
abs,atan2,cos,exp,hex,int,log,oct,rand,sin,sqrt,srand- Array processing
pop,push,shift,splice,unshift- List processing
grep,join,map,qw//,reverse,sort,unpack- Hash processing
delete,each,exists,keys,values- Input and output
binmode,close,closedir,dbmclose,dbmopen,die,eof,fileno,flock,format,getc,print,printf,read,readdir,rewinddir,seek,seekdir,select,syscall,sysread,sysseek,syswrite,tell,telldir,truncate,warn,write- Fixed-length data and records
pack,read,syscall,sysread,syswrite,unpack,vec- Filehandles, files, and directories
chdir,chmod,chown,chroot,fcntl,glob,ioctl,link,lstat,mkdir,open,opendir,readlink,rename,rmdir,stat,symlink,sysopen,umask,unlink,utime- Flow of program control
caller,continue,die,do,dump,eval,exit,goto,last,next,redo,return,sub,wantarray- Scoping
caller,import,local,my,package,use- Miscellaneous
defined,dump,eval,formline,local,my,prototype,reset,scalar,undef,wantarray- Processes and process groups
alarm,exec,fork,getpgrp,getppid,getpriority ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access