perlplan9.pod
来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· POD 代码 · 共 147 行
POD
147 行
If you read this file _as_is_, just ignore the funny characters you see.It is written in the POD format (see pod/perlpod.pod) which is speciallydesigned to be readable as is.=head1 NAMEperlplan9 - Plan 9-specific documentation for Perl=head1 DESCRIPTIONThese are a few notes describing features peculiar toPlan 9 Perl. As such, it is not intended to be a replacementfor the rest of the Perl 5 documentation (which is both copious and excellent). If you have any questions to which you can't find answers in these man pages, contact Luther Huffman at lutherh@stratcom.com and we'll try to answer them.=head2 Invoking PerlPerl is invoked from the command line as described in L<perl>. Most perl scripts, however, do have a first line such as "#!/usr/local/bin/perl". This is known as a shebang (shell-bang) statement and tells the OS shell where to find the perl interpreter. In Plan 9 Perl this statement should be "#!/bin/perl" if you wish to be able to directly invoke the script by its name. Alternatively, you may invoke perl with the command "Perl"instead of "perl". This will produce Acme-friendly errormessages of the form "filename:18".Some scripts, usually identified with a *.PL extension, are self-configuring and are able to correctly create their own shebang path from config information located in Plan 9 Perl. These you won't need to be worried about.=head2 What's in Plan 9 PerlAlthough Plan 9 Perl currently only provides static loading, it is built with a number of useful extensions. These include Opcode, FileHandle, Fcntl, and POSIX. Expect to see others (and DynaLoading!) in the future.=head2 What's not in Plan 9 PerlAs mentioned previously, dynamic loading isn't currently available nor is MakeMaker. Both are high-priority items.=head2 Perl5 Functions not currently supported in Plan 9 PerlSome, such as C<chown> and C<umask> aren't provided because the concept does not exist within Plan 9. Others,such as some of the socket-related functions, simplyhaven't been written yet. Many in the latter category may be supported in the future.The functions not currently implemented include: chown, chroot, dbmclose, dbmopen, getsockopt, setsockopt, recvmsg, sendmsg, getnetbyname, getnetbyaddr, getnetent, getprotoent, getservent, sethostent, setnetent, setprotoent, setservent, endservent, endnetent, endprotoent, umaskThere may be several other functions that have undefined behavior so this list shouldn't be considered complete.=head2 Signals in Plan 9 PerlFor compatibility with perl scripts written for the Unix environment, Plan 9 Perl uses the POSIX signal emulationprovided in Plan 9's ANSI POSIX Environment (APE). Signal stackingisn't supported. The signals provided are: SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGABRT, SIGFPE, SIGKILL, SIGSEGV, SIGPIPE, SIGPIPE, SIGALRM, SIGTERM, SIGUSR1, SIGUSR2, SIGCHLD, SIGCONT, SIGSTOP, SIGTSTP, SIGTTIN, SIGTTOU=head1 COMPILING AND INSTALLING PERL ON PLAN 9WELCOME to Plan 9 Perl, brave soul! This is a preliminary alpha version of Plan 9 Perl. Still to beimplemented are MakeMaker and DynaLoader. Many perl commands aremissing or currently behave in an inscrutable manner. These gaps will,with perseverance and a modicum of luck, be remedied in the nearfuture.To install this software:1. Create the source directories and libraries for perl by running theplan9/setup.rc command (i.e., located in the plan9 subdirectory).Note: the setup routine assumes that you haven't dearchived thesefiles into /sys/src/cmd/perl. After running setup.rc you may deletethe copy of the source you originally detarred, as source code has nowbeen installed in /sys/src/cmd/perl. If you plan on installing perlbinaries for all architectures, run "setup.rc -a".2. After making sure that you have adequate privileges to build systemsoftware, from /sys/src/cmd/perl/5.00301 (adjust versionappropriately) run: mk installIf you wish to install perl versions for all architectures (68020,mips, sparc and 386) run: mk installall3. Wait. The build process will take a *long* time because perlbootstraps itself. A 75MHz Pentium, 16MB RAM machine takes roughly 30minutes to build the distribution from scratch.=head2 Installing Perl Documentation on Plan 9This perl distribution comes with a tremendous amount ofdocumentation. To add these to the built-in manuals that come withPlan 9, from /sys/src/cmd/perl/5.00301 (adjust version appropriately)run: mk manTo begin your reading, start with: man perlThis is a good introduction and will direct you towards other manpages that may interest you.(Note: "mk man" may produce some extraneous noise. Fear not.)=head1 BUGS"As many as there are grains of sand on all the beaches of the world . . ." - Carl Sagan=head1 Revision dateThis document was revised 09-October-1996 for Perl 5.003_7.=head1 AUTHORDirect questions, comments, and the unlikely bug report (ahem) directcomments toward:Luther Huffman, lutherh@stratcom.com, Strategic Computer Solutions, Inc.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?