1 package Pod::Functions;
8 @EXPORT = qw(%Kinds %Type %Flavor %Type_Description @Type_Order);
11 'ARRAY' => 'Functions for real @ARRAYs',
12 'Binary' => 'Functions for fixed length data or records',
13 'File' => 'Functions for filehandles, files, or directories',
14 'Flow' => 'Keywords related to control flow of your perl program',
15 'HASH' => 'Functions for real %HASHes',
16 'I/O' => 'Input and output functions',
17 'LIST' => 'Functions for list data',
18 'Math' => 'Numeric functions',
19 'Misc' => 'Miscellaneous functions',
20 'Modules' => 'Keywords related to perl modules',
21 'Network' => 'Fetching network info',
22 'Objects' => 'Keywords related to classes and object-orientedness',
23 'Process' => 'Functions for processes and process groups',
24 'Regexp' => 'Regular expressions and pattern matching',
25 'Socket' => 'Low-level socket functions',
26 'String' => 'Functions for SCALARs or strings',
27 'SysV' => 'System V interprocess communication functions',
28 'Time' => 'Time-related functions',
29 'User' => 'Fetching user and group info',
30 'Namespace' => 'Keywords altering or affecting scoping of identifiers',
60 ($name, $type, $text) = split " ", $_, 3;
62 $Flavor{$name} = $text;
63 for $type ( split /[,\s]+/, $type ) {
64 push @{$Kinds{$type}}, $name;
69 foreach $type ( @Type_Order ) {
70 $list = join(", ", sort @{$Kinds{$type}});
71 $typedesc = $Type_Description{$type} . ":";
78 ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
80 ~~ ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
82 ~~ ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
89 -X File a file test (-r, -x, etc)
90 abs Math absolute value function
91 accept Socket accept an incoming socket connect
92 alarm Process schedule a SIGALRM
93 atan2 Math arctangent of Y/X in the range -PI to PI
94 bind Socket binds an address to a socket
95 binmode I/O prepare binary files for I/O
96 bless Objects create an object
97 caller Flow,Namespace get context of the current subroutine call
98 chdir File change your current working directory
99 chmod File changes the permissions on a list of files
100 chomp String remove a trailing record separator from a string
101 chop String remove the last character from a string
102 chown File change the owership on a list of files
103 chr String get character this number represents
104 chroot File make directory new root for path lookups
105 close I/O close file (or pipe or socket) handle
106 closedir I/O close directory handle
107 connect Socket connect to a remote socket
108 continue Flow optional trailing block in a while or foreach
109 cos Math cosine function
110 crypt String one-way passwd-style encryption
111 dbmclose Objects,I/O breaks binding on a tied dbm file
112 dbmopen Objects,I/O create binding on a tied dbm file
113 defined Misc test whether a value, variable, or function is defined
114 delete HASH deletes a value from a hash
115 die I/O,Flow raise an exception or bail out
116 do Flow,Modules turn a BLOCK into a TERM
117 dump Misc,Flow create an immediate core dump
118 each HASH retrieve the next key/value pair from a hash
119 endgrent User be done using group file
120 endhostent User be done using hosts file
121 endnetent User be done using networks file
122 endprotoent Network be done using protocols file
123 endpwent User be done using passwd file
124 endservent Network be done using services file
125 eof I/O test a filehandle for its end
126 eval Flow,Misc catch exceptions or compile and run code
127 exec Process abandon this program to run another
128 exists HASH test whether a hash key is present
129 exit Flow terminate this program
130 exp Math raise I<e> to a power
131 fcntl File file control system call
132 fileno I/O return file descriptor from filehandle
133 flock I/O lock an entire file with an advisory lock
134 fork Process create a new process just like this one
135 format I/O declare a picture format with use by the write() function
136 formline Misc internal function used for formats
137 getc I/O get the next character from the filehandle
138 getgrent User get next group record
139 getgrgid User get group record given group user ID
140 getgrnam User get group record given group name
141 gethostbyaddr Network get host record given its address
142 gethostbyname Network get host record given name
143 gethostent Network get next hosts record
144 getlogin User return who logged in at this tty
145 getnetbyaddr Network get network record given its address
146 getnetbyname Network get networks record given name
147 getnetent Network get next networks record
148 getpeername Socket find the other end of a socket connection
149 getpgrp Process get process group
150 getppid Process get parent process ID
151 getpriority Process get current nice value
152 getprotobyname Network get protocol record given name
153 getprotobynumber Network get protocol record numeric protocol
154 getprotoent Network get next protocols record
155 getpwent User get next passwd record
156 getpwnam User get passwd record given user login name
157 getpwuid User get passwd record given user ID
158 getservbyname Network get services record given its name
159 getservbyport Network get services record given numeric port
160 getservent Network get next services record
161 getsockname Socket retrieve the sockaddr for a given socket
162 getsockopt Socket get socket options on a given socket
163 glob File expand filenames using wildcards
164 gmtime Time convert UNIX time into record or string using Greenwich time
165 goto Flow create spaghetti code
166 grep LIST locate elements in a list test true against a given criterion
167 hex Math,String convert a string to a hexadecimal number
168 import Modules,Namespace patch a module's namespace into your own
169 index String find a substring within a string
170 int Math get the integer portion of a number
171 ioctl File system-dependent device control system call
172 join LIST join a list into a string using a separator
173 keys HASH retrieve list of indices from a hash
174 kill Process send a signal to a process or process group
175 last Flow exit a block prematurely
176 lc String return lower-case version of a string
177 lcfirst String return a string with just the next letter in lower case
178 length String return the number of bytes in a string
179 link File create a hard link in the filesytem
180 listen Socket register your socket as a server
181 local Misc,Namespace create a temporary value for a global variable (dynamic scoping)
182 localtime Time convert UNIX time into record or string using local time
183 lock Threads get a thread lock on a variable, subroutine, or method
184 log Math retrieve the natural logarithm for a number
185 lstat File stat a symbolic link
186 m// Regexp match a string with a regular expression pattern
187 map LIST apply a change to a list to get back a new list with the changes
188 mkdir File create a directory
189 msgctl SysV SysV IPC message control operations
190 msgget SysV get SysV IPC message queue
191 msgrcv SysV receive a SysV IPC message from a message queue
192 msgsnd SysV send a SysV IPC message to a message queue
193 my Misc,Namespace declare and assign a local variable (lexical scoping)
194 next Flow iterate a block prematurely
195 no Modules unimport some module symbols or semantics at compile time
196 package Modules,Objects,Namespace declare a separate global namespace
197 prototype Flow,Misc get the prototype (if any) of a subroutine
198 oct String,Math convert a string to an octal number
199 open File open a file, pipe, or descriptor
200 opendir File open a directory
201 ord String find a character's numeric representation
202 pack Binary,String convert a list into a binary representation
203 pipe Process open a pair of connected filehandles
204 pop ARRAY remove the last element from an array and return it
205 pos Regexp find or set the offset for the last/next m//g search
206 print I/O output a list to a filehandle
207 printf I/O output a formatted list to a filehandle
208 push ARRAY append one or more elements to an array
209 q/STRING/ String singly quote a string
210 qq/STRING/ String doubly quote a string
211 quotemeta Regexp quote regular expression magic characters
212 qw/STRING/ LIST quote a list of words
213 qx/STRING/ Process backquote quote a string
214 qr/PATTERN/ Regexp Compile pattern
215 rand Math retrieve the next pseudorandom number
216 read I/O,Binary fixed-length buffered input from a filehandle
217 readdir I/O get a directory from a directory handle
218 readline I/O fetch a record from a file
219 readlink File determine where a symbolic link is pointing
220 recv Socket receive a message over a Socket
221 redo Flow start this loop iteration over again
222 ref Objects find out the type of thing being referenced
223 rename File change a filename
224 require Modules load in external functions from a library at runtime
225 reset Misc clear all variables of a given name
226 return Flow get out of a function early
227 reverse String,LIST flip a string or a list
228 rewinddir I/O reset directory handle
229 rindex String right-to-left substring search
230 rmdir File remove a directory
231 s/// Regexp replace a pattern with a string
232 scalar Misc force a scalar context
233 seek I/O reposition file pointer for random-access I/O
234 seekdir I/O reposition directory pointer
235 select I/O reset default output or do I/O multiplexing
236 semctl SysV SysV semaphore control operations
237 semget SysV get set of SysV semaphores
238 semop SysV SysV semaphore operations
239 send Socket send a message over a socket
240 setgrent User prepare group file for use
241 sethostent Network prepare hosts file for use
242 setnetent Network prepare networks file for use
243 setpgrp Process set the process group of a process
244 setpriority Process set a process's nice value
245 setprotoent Network prepare protocols file for use
246 setpwent User prepare passwd file for use
247 setservent Network prepare services file for use
248 setsockopt Socket set some socket options
249 shift ARRAY remove the first element of an array, and return it
250 shmctl SysV SysV shared memory operations
251 shmget SysV get SysV shared memory segment identifier
252 shmread SysV read SysV shared memory
253 shmwrite SysV write SysV shared memory
254 shutdown Socket close down just half of a socket connection
255 sin Math return the sine of a number
256 sleep Process block for some number of seconds
257 socket Socket create a socket
258 socketpair Socket create a pair of sockets
259 sort LIST sort a list of values
260 splice ARRAY add or remove elements anywhere in an array
261 split Regexp split up a string using a regexp delimiter
262 sprintf String formatted print into a string
263 sqrt Math square root function
264 srand Math seed the random number generator
265 stat File get a file's status information
266 study Regexp optimize input data for repeated searches
267 sub Flow declare a subroutine, possibly anonymously
268 substr String get or alter a portion of a stirng
269 symlink File create a symbolic link to a file
270 syscall I/O,Binary execute an arbitrary system call
271 sysread I/O,Binary fixed-length unbuffered input from a filehandle
272 sysseek I/O,Binary position I/O pointer on handle used with sysread and syswrite
273 system Process run a separate program
274 syswrite I/O,Binary fixed-length unbuffered output to a filehandle
275 tell I/O get current seekpointer on a filehandle
276 telldir I/O get current seekpointer on a directory handle
277 tie Objects bind a variable to an object class
278 time Time return number of seconds since 1970
279 times Process,Time return elapsed time for self and child processes
280 tr/// String transliterate a string
281 truncate I/O shorten a file
282 uc String return upper-case version of a string
283 ucfirst String return a string with just the next letter in upper case
284 umask File set file creation mode mask
285 undef Misc remove a variable or function definition
286 unlink File remove one link to a file
287 unpack Binary,LIST convert binary structure into normal perl variables
288 unshift ARRAY prepend more elements to the beginning of a list
289 untie Objects break a tie binding to a variable
290 use Modules,Namespace load a module and import its namespace
291 use Objects load in a module at compile time
292 utime File set a file's last access and modify times
293 values HASH return a list of the values in a hash
294 vec Binary test or set particular bits in a string
295 wait Process wait for any child process to die
296 waitpid Process wait for a particular child process to die
297 wantarray Misc,Flow get list vs array context of current subroutine call
298 warn I/O print debugging info
299 write I/O print a picture record
300 y/// String transliterate a string