PERLPLAN9(1perl)
π PERLPLAN9 π
okay bestie, so this is the Plan 9-specific documentation for Perl β the little corner of the Perl 5 man pages that talks about our weird and wonderful OS. Come sit with me. π«Ά
β¨ NAME β¨
perlplan9 β Plan 9-specific documentation for Perl. that's it, that's the page. π
πΈ DESCRIPTION πΈ
These are a few notes describing features peculiar to Plan 9 Perl. As such, it is not intended to be a replacement for 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. fr fr, he's the plug. π¬
π¦ Invoking Perl π¦
Perl is invoked from the command line as described in 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 it 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. no cap, that's the one. π₯
Alternatively, you may invoke perl with the command Perl instead of perl. This will produce Acme-friendly error messages of the form filename:18. it's giving "error messages that make sense to your editor" and honestly? iconic. β¨
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. π
π What's in Plan 9 Perl π
Although 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. π
π What's not in Plan 9 Perl π
As mentioned previously, dynamic loading isn't currently available nor is MakeMaker. Both are high-priority items. the way that they're just not there yet... but they're on the list, bestie. π
π Perl5 Functions not currently supported in Plan 9 Perl π
Some, such as chown and umask, aren't provided because the concept does not exist within Plan 9. Others, such as some of the socket-related functions, simply haven'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, umask
There may be several other functions that have undefined behavior so this list shouldn't be considered complete. β οΈ (like, don't come for me if your fav isn't on the list, it might just be feral.)
π Signals in Plan 9 Perl π
For compatibility with perl scripts written for the Unix environment, Plan 9 Perl uses the POSIX signal emulation provided in Plan 9's ANSI POSIX Environment (APE). Signal stacking isn'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
(yes, SIGPIPE is listed twice in that list. I'm not editing the universe's inventory, I'm just reporting it. π
)
π COMPILING AND INSTALLING PERL ON PLAN 9 π
WELCOME to Plan 9 Perl, brave soul! π«Άπ
This is a preliminary alpha version of Plan 9 Perl. Still to be implemented areMakeMakerandDynaLoader. Many perl commands are missing or currently behave in an inscrutable manner. These gaps will, with perseverance and a modicum of luck, be remedied in the near future. To install this software:
let's go step by step, bestie, we're doing this together π
- Create the source directories and libraries for perl by running the
plan9/setup.rccommand (i.e., located in theplan9subdirectory). Note: the setup routine assumes that you haven't dearchived these files into/sys/src/cmd/perl. After runningsetup.rcyou may delete the copy of the source you originally detarred, as source code has now been installed in/sys/src/cmd/perl. If you plan on installing perl binaries for all architectures, runsetup.rc -a. β¨ - After making sure that you have adequate privileges to build system software, from
/sys/src/cmd/perl/5.00301(adjust version appropriately) run:
mk install
If you wish to install perl versions for all architectures (68020, mips, sparc and 386) run:
mk installall
- Wait. β³ The build process will take a long time because perl bootstraps itself. A 75MHz Pentium, 16MB RAM machine takes roughly 30 minutes to build the distribution from scratch. go make a snack. go touch grass. it'll be there when you get back. πΈ
π§ Installing Perl Documentation on Plan 9 π§
This perl distribution comes with a tremendous amount of documentation. To add these to the built-in manuals that come with Plan 9, from /sys/src/cmd/perl/5.00301 (adjust version appropriately) run:
mk man
To begin your reading, start with:
man perl
This is a good introduction and will direct you towards other man pages that may interest you. π
(Note: mk man may produce some extraneous noise. Fear not. π)
π BUGS π
"As many as there are grains of sand on all the beaches of the world . . ." β Carl Sagan
poetic. devastating. accurate. π
β Revision date β
This document was revised 09-October-1996 for Perl 5.003_7. vintage, lowkey. π
π¬ AUTHOR π¬
Direct questions, comments, and the unlikely bug report (ahem) direct comments toward:
Luther Huffman, lutherh@stratcom.com, Strategic Computer Solutions, Inc.
and that's the whole page bestie!! π₯³π¦β¨ slayed. go build some perl on plan 9 and think of me.
perl v5.44.0 β 2026-10-17 β PERLPLAN9(1perl) π
πΈπ
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms