home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / SLAKWARE / D12 / PERL1.TGZ / perl1.tar / usr / lib / perl5 / Pod / Functions.pm next >
Text File  |  1996-06-28  |  12KB  |  296 lines

  1. package Pod::Functions;
  2.  
  3. #:vi:set ts=20
  4.  
  5. require Exporter;
  6.  
  7. @ISA = qw(Exporter);
  8. @EXPORT = qw(%Kinds %Type %Flavor %Type_Descriptions @Type_Order);
  9.  
  10. %Type_Description = (
  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',
  31. );
  32.  
  33. @Type_Order = qw{
  34.     String
  35.     Regexp
  36.     Math
  37.     ARRAY
  38.     LIST
  39.     HASH
  40.     I/O
  41.     Binary
  42.     File
  43.     Flow
  44.     Namespace
  45.     Misc
  46.     Process
  47.     Modules
  48.     Objects
  49.     Socket
  50.     SysV
  51.     User
  52.     Network
  53.     Time
  54. };
  55.  
  56. while (<DATA>) {
  57.     chomp;
  58.     s/#.*//;
  59.     next unless $_;
  60.     ($name, $type, $text) = split " ", $_, 3;
  61.     $Type{$name} = $type;
  62.     $Flavor{$name} = $text;
  63.     for $type ( split /[,\s]+/, $type ) {
  64.     push @{$Kinds{$type}}, $name;
  65.     }
  66.  
  67. unless (caller) { 
  68.     foreach $type ( @Type_Order ) {
  69.     $list = join(", ", sort @{$Kinds{$type}});
  70.     $typedesc = $Type_Description{$type} . ":";
  71.     write;
  72.     } 
  73. }
  74.  
  75. format = 
  76.  
  77. ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  78.     $typedesc 
  79. ~~ ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  80.     $typedesc 
  81.  ~~  ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  82.     $list
  83. .
  84.  
  85. 1
  86.  
  87. __DATA__
  88. -X    File    a file test (-r, -x, etc)
  89. abs    Math    absolute value function
  90. accept    Socket    accept an incoming socket connect
  91. alarm    Process    schedule a SIGALRM 
  92. atan2    Math    arctangent of Y/X 
  93. bind    Socket    binds an address to a socket
  94. binmode    I/O    prepare binary files on old systems
  95. bless    Objects    create an object 
  96. caller    Flow,Namespace    get context of the current subroutine call
  97. chdir    File    change your current working directory
  98. chmod    File    changes the permissions on a list of files
  99. chomp    String     remove a trailing record separator from a string
  100. chop    String     remove the last character from a string
  101. chown    File    change the owership on a list of files
  102. chr    String     get character this number represents
  103. chroot    File    make directory new root for path lookups
  104. close    I/O    close file (or pipe or socket) handle
  105. closedir    I/O    close directory handle
  106. connect    Socket    connect to a remove socket
  107. continue    Flow    optional trailing block in a while or foreach 
  108. cos    Math    cosine function
  109. crypt    String    one-way passwd-style encryption
  110. dbmclose    Objects,I/O    breaks binding on a tied dbm file
  111. dbmopen    Objects,I/O    create binding on a tied dbm file
  112. defined    Misc    test whether a value, variable, or function is defined
  113. delete    HASH    deletes a value from a hash
  114. die    I/O,Flow    raise an exception or bail out
  115. do    Flow,Modules    turn a BLOCK into a TERM
  116. dump    Misc,Flow    create an immediate core dump
  117. each    HASH    retrieve the next key/value pair from a hash
  118. endgrent    User    be done using group file
  119. endhostent    User    be done using hosts file
  120. endnetent    User    be done using networks file
  121. endprotoent    Network    be done using protocols file
  122. endpwent    User    be done using passwd file
  123. endservent    Network    be done using services file
  124. eof    I/O    test a filehandle for its end
  125. eval    Flow,Misc    catch exceptions or compile code
  126. exec    Process    abandon this program to run another
  127. exists    HASH    test whether a hash key is present
  128. exit    Flow    terminate this program
  129. exp    Math    raise I<e> to a power
  130. fcntl    File    file control system all
  131. fileno    I/O    return file descriptor from filehandle
  132. flock    I/O    lock an entire file with an advisory lock
  133. fork    Process    create a new process just like this one
  134. format    I/O    declare a picture format with use by the write() function
  135. formline    Misc    internal function used for formats
  136. getc    I/O    get    the next character from the filehandle
  137. getgrent    User    get next group record 
  138. getgrgid    User    get group record given group user ID
  139. getgrnam    User    get group record given group name
  140. gethostbyaddr    Network    get host record given its address
  141. gethostbyname    Network    get host record given name
  142. gethostent    Network    get next hosts record 
  143. getlogin    User    return who logged in at this tty
  144. getnetbyaddr    Network    get network record given its address
  145. getnetbyname    Network    get networks record given name
  146. getnetent    Network    get next networks record 
  147. getpeername    Socket    find the other hend of a socket connection
  148. getpgrp    Process    get process group
  149. getppid    Process    get parent process ID
  150. getpriority    Process    get current nice value
  151. getprotobyname    Network    get protocol record given name
  152. getprotobynumber    Network    get protocol record numeric protocol
  153. getprotoent    Network    get next protocols record
  154. getpwent    User    get next passwd record
  155. getpwnam    User    get passwd record given user login name
  156. getpwuid    User    get passwd record given user ID
  157. getservbyname    Network    get services record given its name
  158. getservbyport    Network    get services record given numeric port
  159. getservent    Network    get next services record 
  160. getsockname    Socket    retrieve the sockaddr for a given socket
  161. getsockopt    Socket    get socket options on a given socket
  162. glob    File        expand filenames using wildcards
  163. gmtime    Time    convert UNIX time into record or string using Greenwich time
  164. goto    Flow    create spaghetti code
  165. grep    LIST    locate elements in a list test true against a given criterion
  166. hex    Math,String    convert a string to a hexadecimal number
  167. import    Modules,Namespace    patch a module's namespace into your own
  168. index    String    find a substring within a string
  169. int    Math    get the integer portion of a number
  170. ioctl    File    system-dependent device control system call
  171. join    LIST    join a list into a string using a separator
  172. keys    HASH    retrieve list of indices from a hash
  173. kill    Process    send a signal to a process or process group
  174. last    Flow    exit a block prematurely
  175. lc    String    return lower-case version of a string
  176. lcfirst    String    return a string with just the next letter in lower case
  177. length    String    return the number of bytes in a string
  178. link    File    create a hard link in the filesytem
  179. listen    Socket    register your socket as a server 
  180. local    Misc,Namespace    create a temporary value for a global variable (dynamic scoping)
  181. localtime    Time    convert UNIX time into record or string using local time
  182. log    Math    retrieve the natural logarithm for a number
  183. lstat    File    stat a symbolic link
  184. m//    Regexp    match a string with a regular expression pattern
  185. map    LIST    apply a change to a list to get back a new list with the changes
  186. mkdir    File    create a directory
  187. msgctl    SysV    SysV IPC message control operations
  188. msgget    SysV    get SysV IPC message queue
  189. msgrcv    SysV    receive a SysV IPC message from a message queue
  190. msgsnd    SysV    send a SysV IPC message to a message queue
  191. my    Misc,Namespace    declare and assign a local variable (lexical scoping)
  192. next    Flow    iterate a block prematurely
  193. no    Modules    unimport some module symbols or semantics at compile time
  194. package    Modules,Objects,Namespace    declare a separate global namespace
  195. oct    String,Math    convert a string to an octal number
  196. open    File    open a file, pipe, or descriptor
  197. opendir    File    open a directory
  198. ord    String    find a character's numeric representation
  199. pack    Binary,String    convert a list into a binary representation
  200. pipe    Process    open a pair of connected filehandles
  201. pop    ARRAY    remove the last element from an array and return it
  202. pos    Regexp    find or set the offset for the last/next m//g search
  203. print    I/O    output a list to a filehandle
  204. printf    I/O      output a formatted list to a filehandle
  205. push    ARRAY    append one or more elements to an array
  206. q/STRING/    String    singly quote a string
  207. qq/STRING/    String    doubly quote a string
  208. quotemeta    Regexp    quote regular expression magic characters
  209. qw/STRING/    LIST    quote a list of words
  210. qx/STRING/    Process    backquo