| 1 | .\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32 |
| 2 | .\" |
| 3 | .\" Standard preamble: |
| 4 | .\" ======================================================================== |
| 5 | .de Sh \" Subsection heading |
| 6 | .br |
| 7 | .if t .Sp |
| 8 | .ne 5 |
| 9 | .PP |
| 10 | \fB\\$1\fR |
| 11 | .PP |
| 12 | .. |
| 13 | .de Sp \" Vertical space (when we can't use .PP) |
| 14 | .if t .sp .5v |
| 15 | .if n .sp |
| 16 | .. |
| 17 | .de Vb \" Begin verbatim text |
| 18 | .ft CW |
| 19 | .nf |
| 20 | .ne \\$1 |
| 21 | .. |
| 22 | .de Ve \" End verbatim text |
| 23 | .ft R |
| 24 | .fi |
| 25 | .. |
| 26 | .\" Set up some character translations and predefined strings. \*(-- will |
| 27 | .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left |
| 28 | .\" double quote, and \*(R" will give a right double quote. | will give a |
| 29 | .\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to |
| 30 | .\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C' |
| 31 | .\" expand to `' in nroff, nothing in troff, for use with C<>. |
| 32 | .tr \(*W-|\(bv\*(Tr |
| 33 | .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' |
| 34 | .ie n \{\ |
| 35 | . ds -- \(*W- |
| 36 | . ds PI pi |
| 37 | . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch |
| 38 | . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch |
| 39 | . ds L" "" |
| 40 | . ds R" "" |
| 41 | . ds C` "" |
| 42 | . ds C' "" |
| 43 | 'br\} |
| 44 | .el\{\ |
| 45 | . ds -- \|\(em\| |
| 46 | . ds PI \(*p |
| 47 | . ds L" `` |
| 48 | . ds R" '' |
| 49 | 'br\} |
| 50 | .\" |
| 51 | .\" If the F register is turned on, we'll generate index entries on stderr for |
| 52 | .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index |
| 53 | .\" entries marked with X<> in POD. Of course, you'll have to process the |
| 54 | .\" output yourself in some meaningful fashion. |
| 55 | .if \nF \{\ |
| 56 | . de IX |
| 57 | . tm Index:\\$1\t\\n%\t"\\$2" |
| 58 | .. |
| 59 | . nr % 0 |
| 60 | . rr F |
| 61 | .\} |
| 62 | .\" |
| 63 | .\" For nroff, turn off justification. Always turn off hyphenation; it makes |
| 64 | .\" way too many mistakes in technical documents. |
| 65 | .hy 0 |
| 66 | .if n .na |
| 67 | .\" |
| 68 | .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). |
| 69 | .\" Fear. Run. Save yourself. No user-serviceable parts. |
| 70 | . \" fudge factors for nroff and troff |
| 71 | .if n \{\ |
| 72 | . ds #H 0 |
| 73 | . ds #V .8m |
| 74 | . ds #F .3m |
| 75 | . ds #[ \f1 |
| 76 | . ds #] \fP |
| 77 | .\} |
| 78 | .if t \{\ |
| 79 | . ds #H ((1u-(\\\\n(.fu%2u))*.13m) |
| 80 | . ds #V .6m |
| 81 | . ds #F 0 |
| 82 | . ds #[ \& |
| 83 | . ds #] \& |
| 84 | .\} |
| 85 | . \" simple accents for nroff and troff |
| 86 | .if n \{\ |
| 87 | . ds ' \& |
| 88 | . ds ` \& |
| 89 | . ds ^ \& |
| 90 | . ds , \& |
| 91 | . ds ~ ~ |
| 92 | . ds / |
| 93 | .\} |
| 94 | .if t \{\ |
| 95 | . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" |
| 96 | . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' |
| 97 | . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' |
| 98 | . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' |
| 99 | . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' |
| 100 | . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' |
| 101 | .\} |
| 102 | . \" troff and (daisy-wheel) nroff accents |
| 103 | .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' |
| 104 | .ds 8 \h'\*(#H'\(*b\h'-\*(#H' |
| 105 | .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] |
| 106 | .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' |
| 107 | .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' |
| 108 | .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] |
| 109 | .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] |
| 110 | .ds ae a\h'-(\w'a'u*4/10)'e |
| 111 | .ds Ae A\h'-(\w'A'u*4/10)'E |
| 112 | . \" corrections for vroff |
| 113 | .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' |
| 114 | .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' |
| 115 | . \" for low resolution devices (crt and lpr) |
| 116 | .if \n(.H>23 .if \n(.V>19 \ |
| 117 | \{\ |
| 118 | . ds : e |
| 119 | . ds 8 ss |
| 120 | . ds o a |
| 121 | . ds d- d\h'-1'\(ga |
| 122 | . ds D- D\h'-1'\(hy |
| 123 | . ds th \o'bp' |
| 124 | . ds Th \o'LP' |
| 125 | . ds ae ae |
| 126 | . ds Ae AE |
| 127 | .\} |
| 128 | .rm #[ #] #H #V #F C |
| 129 | .\" ======================================================================== |
| 130 | .\" |
| 131 | .IX Title "PERLPLAN9 1" |
| 132 | .TH PERLPLAN9 1 "2006-01-07" "perl v5.8.8" "Perl Programmers Reference Guide" |
| 133 | .SH "NAME" |
| 134 | perlplan9 \- Plan 9\-specific documentation for Perl |
| 135 | .SH "DESCRIPTION" |
| 136 | .IX Header "DESCRIPTION" |
| 137 | These are a few notes describing features peculiar to |
| 138 | Plan 9 Perl. As such, it is not intended to be a replacement |
| 139 | for the rest of the Perl 5 documentation (which is both |
| 140 | copious and excellent). If you have any questions to |
| 141 | which you can't find answers in these man pages, contact |
| 142 | Luther Huffman at lutherh@stratcom.com and we'll try to |
| 143 | answer them. |
| 144 | .Sh "Invoking Perl" |
| 145 | .IX Subsection "Invoking Perl" |
| 146 | Perl is invoked from the command line as described in |
| 147 | perl. Most perl scripts, however, do have a first line |
| 148 | such as \*(L"#!/usr/local/bin/perl\*(R". This is known as a shebang |
| 149 | (shell\-bang) statement and tells the \s-1OS\s0 shell where to find |
| 150 | the perl interpreter. In Plan 9 Perl this statement should be |
| 151 | \&\*(L"#!/bin/perl\*(R" if you wish to be able to directly invoke the |
| 152 | script by its name. |
| 153 | Alternatively, you may invoke perl with the command \*(L"Perl\*(R" |
| 154 | instead of \*(L"perl\*(R". This will produce Acme-friendly error |
| 155 | messages of the form \*(L"filename:18\*(R". |
| 156 | .PP |
| 157 | Some scripts, usually identified with a *.PL extension, are |
| 158 | self-configuring and are able to correctly create their own |
| 159 | shebang path from config information located in Plan 9 |
| 160 | Perl. These you won't need to be worried about. |
| 161 | .Sh "What's in Plan 9 Perl" |
| 162 | .IX Subsection "What's in Plan 9 Perl" |
| 163 | Although Plan 9 Perl currently only provides static |
| 164 | loading, it is built with a number of useful extensions. |
| 165 | These include Opcode, FileHandle, Fcntl, and \s-1POSIX\s0. Expect |
| 166 | to see others (and DynaLoading!) in the future. |
| 167 | .Sh "What's not in Plan 9 Perl" |
| 168 | .IX Subsection "What's not in Plan 9 Perl" |
| 169 | As mentioned previously, dynamic loading isn't currently |
| 170 | available nor is MakeMaker. Both are high-priority items. |
| 171 | .Sh "Perl5 Functions not currently supported in Plan 9 Perl" |
| 172 | .IX Subsection "Perl5 Functions not currently supported in Plan 9 Perl" |
| 173 | Some, such as \f(CW\*(C`chown\*(C'\fR and \f(CW\*(C`umask\*(C'\fR aren't provided |
| 174 | because the concept does not exist within Plan 9. Others, |
| 175 | such as some of the socket-related functions, simply |
| 176 | haven't been written yet. Many in the latter category |
| 177 | may be supported in the future. |
| 178 | .PP |
| 179 | The functions not currently implemented include: |
| 180 | .PP |
| 181 | .Vb 5 |
| 182 | \& chown, chroot, dbmclose, dbmopen, getsockopt, |
| 183 | \& setsockopt, recvmsg, sendmsg, getnetbyname, |
| 184 | \& getnetbyaddr, getnetent, getprotoent, getservent, |
| 185 | \& sethostent, setnetent, setprotoent, setservent, |
| 186 | \& endservent, endnetent, endprotoent, umask |
| 187 | .Ve |
| 188 | .PP |
| 189 | There may be several other functions that have undefined |
| 190 | behavior so this list shouldn't be considered complete. |
| 191 | .Sh "Signals in Plan 9 Perl" |
| 192 | .IX Subsection "Signals in Plan 9 Perl" |
| 193 | For compatibility with perl scripts written for the Unix |
| 194 | environment, Plan 9 Perl uses the \s-1POSIX\s0 signal emulation |
| 195 | provided in Plan 9's \s-1ANSI\s0 \s-1POSIX\s0 Environment (\s-1APE\s0). Signal stacking |
| 196 | isn't supported. The signals provided are: |
| 197 | .PP |
| 198 | .Vb 4 |
| 199 | \& SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGABRT, |
| 200 | \& SIGFPE, SIGKILL, SIGSEGV, SIGPIPE, SIGPIPE, SIGALRM, |
| 201 | \& SIGTERM, SIGUSR1, SIGUSR2, SIGCHLD, SIGCONT, |
| 202 | \& SIGSTOP, SIGTSTP, SIGTTIN, SIGTTOU |
| 203 | .Ve |
| 204 | .SH "COMPILING AND INSTALLING PERL ON PLAN 9" |
| 205 | .IX Header "COMPILING AND INSTALLING PERL ON PLAN 9" |
| 206 | \&\s-1WELCOME\s0 to Plan 9 Perl, brave soul! |
| 207 | .PP |
| 208 | .Vb 5 |
| 209 | \& This is a preliminary alpha version of Plan 9 Perl. Still to be |
| 210 | \&implemented are MakeMaker and DynaLoader. Many perl commands are |
| 211 | \&missing or currently behave in an inscrutable manner. These gaps will, |
| 212 | \&with perseverance and a modicum of luck, be remedied in the near |
| 213 | \&future.To install this software: |
| 214 | .Ve |
| 215 | .PP |
| 216 | 1. Create the source directories and libraries for perl by running the |
| 217 | plan9/setup.rc command (i.e., located in the plan9 subdirectory). |
| 218 | Note: the setup routine assumes that you haven't dearchived these |
| 219 | files into /sys/src/cmd/perl. After running setup.rc you may delete |
| 220 | the copy of the source you originally detarred, as source code has now |
| 221 | been installed in /sys/src/cmd/perl. If you plan on installing perl |
| 222 | binaries for all architectures, run \*(L"setup.rc \-a\*(R". |
| 223 | .PP |
| 224 | 2. After making sure that you have adequate privileges to build system |
| 225 | software, from /sys/src/cmd/perl/5.00301 (adjust version |
| 226 | appropriately) run: |
| 227 | .PP |
| 228 | .Vb 1 |
| 229 | \& mk install |
| 230 | .Ve |
| 231 | .PP |
| 232 | If you wish to install perl versions for all architectures (68020, |
| 233 | mips, sparc and 386) run: |
| 234 | .PP |
| 235 | .Vb 1 |
| 236 | \& mk installall |
| 237 | .Ve |
| 238 | .PP |
| 239 | 3. Wait. The build process will take a *long* time because perl |
| 240 | bootstraps itself. A 75MHz Pentium, 16MB \s-1RAM\s0 machine takes roughly 30 |
| 241 | minutes to build the distribution from scratch. |
| 242 | .Sh "Installing Perl Documentation on Plan 9" |
| 243 | .IX Subsection "Installing Perl Documentation on Plan 9" |
| 244 | This perl distribution comes with a tremendous amount of |
| 245 | documentation. To add these to the built-in manuals that come with |
| 246 | Plan 9, from /sys/src/cmd/perl/5.00301 (adjust version appropriately) |
| 247 | run: |
| 248 | .PP |
| 249 | .Vb 1 |
| 250 | \& mk man |
| 251 | .Ve |
| 252 | .PP |
| 253 | To begin your reading, start with: |
| 254 | .PP |
| 255 | .Vb 1 |
| 256 | \& man perl |
| 257 | .Ve |
| 258 | .PP |
| 259 | This is a good introduction and will direct you towards other man |
| 260 | pages that may interest you. |
| 261 | .PP |
| 262 | (Note: \*(L"mk man\*(R" may produce some extraneous noise. Fear not.) |
| 263 | .SH "BUGS" |
| 264 | .IX Header "BUGS" |
| 265 | \&\*(L"As many as there are grains of sand on all the beaches of the |
| 266 | world . . .\*(R" \- Carl Sagan |
| 267 | .SH "Revision date" |
| 268 | .IX Header "Revision date" |
| 269 | This document was revised 09\-October\-1996 for Perl 5.003_7. |
| 270 | .SH "AUTHOR" |
| 271 | .IX Header "AUTHOR" |
| 272 | Direct questions, comments, and the unlikely bug report (ahem) direct |
| 273 | comments toward: |
| 274 | .PP |
| 275 | Luther Huffman, lutherh@stratcom.com, |
| 276 | Strategic Computer Solutions, Inc. |