PERLAMIGA(1)
π PERLAMIGA π
okay bestie, so this is the perlamiga page from the Perl Programmers Reference Guide β it's all about Perl under AmigaOS 4.1 π¦ and it's genuinely a whole saga. grab a snack, we're doing this. β¨
πΈ NAME πΈ
perlamiga β Perl under AmigaOS 4.1 π
β οΈ NOTE β οΈ
okay so real talk first, no cap: this is a port of Perl 5.22.1, and it is a fresh port. it is not in any way compatible with my previous ports of Perl 5.8 and 5.16.3. so literally you will need to reinstall / rebuild any third party modules you have installed. not optional, bestie. π
also you need newlib.library version 53.28 or greater. periodt.
β¨ SYNOPSIS β¨
so once perl is installed you can read this doc like this:
sh -c "perldoc perlamiga"
or you may read as is: either as README.amiga, or pod/perlamiga.pod. slay. π
π DESCRIPTION π
π§ Prerequisites for running Perl 5.22.1 under AmigaOS 4.1
- AmigaOS 4.1 update 6 with all updates applied as of 9th October 2013 β and the most important of which is:
newlib.libraryversion 53.28 or greater- AmigaOS SDK β Perl installs into the SDK directory structure and expects many of the build tools present in the SDK to be available. so for the best results, install the SDK first. π«Ά
- abc-shell β if you do not have the SDK installed you must at least have abc-shell installed or some other suitable
shport. this is required to run external commands and should be available asshin your path. iykyk.
π Starting Perl programs under AmigaOS 4.1
Perl may be run from the AmigaOS shell, but for best results it should be run under abc-shell. (abc-shell handles file globbing, pattern expansion, and sets up environment variables in the UN*Xy way that Perl expects.) π
for example:
New Shell process 10
10.AmigaOS4:> sh
/AmigaOS4>perl path:to/myprog arg1 arrg2 arg3
Abc-shell can also launch programs via the #! syntax at the start of the program file. it's best to use the form #!SDK:Local/C/perl so that the AmigaOS shell may also find perl in the same way. AmigaOS requires the script bit to be set for this to work:
10.AmigaOS4:> sh
/AmigaOS4>myprog arg1 arrg2 arg3
π Limitations of Perl under AmigaOS 4.1
- Nested Piped programs can crash when run from older abc-shells β abc-shell version 53.2 has a bug that can cause crashes in the subprocesses used to run piped programs. if a later version is available you should install it instead. π
- Incorrect or unexpected command line unescaping β
newlib.library53.30 and earlier incorrectly unescape slashed escape sequences e.g.\"\n\tetc, requiring unusual extra escaping. π - Starting subprocesses via open has limitations
open FH, "command |"
Subprocesses started with open use a minimal popen() routine and therefore they do not return pids usable with waitpid etc. π
- If you find any other limitations or bugs then let me know. β please report bugs in this version of perl to
andy@broad.ology.org.ukin the first instance. π«Ά
π INSTALLATION π
this guide assumes you have obtained a prebuilt archive from os4depot.net. π
- Unpack the main archive to a temporary location (
RAM:is fine). - Execute the provided install script from shell or via its icon.
- Once installed you may delete the temporary archive.
You must not attempt to install by hand. bestie i'm serious. π ββοΈ
this approach will preserve links in the installation without creating duplicate binaries. iconic. β¨
if you have the earlier ports perl 5.16 or 5.8 installed you may like to rename your perl executable to perl516 or perl58 or something similar before the installation of 5.22.1 β this will allow you to use both versions at the same time. main character energy fr fr. π
π¦ Amiga Specific Modules π¦
π Amiga::ARexx
The Amiga::ARexx module allows you to easily create a perl based ARexx host or to send ARexx commands to other programs. so versatile. π
Try perldoc Amiga::ARexx for more info.
β Amiga::Exec
The Amiga::Exec module introduces support for Wait(). yes bestie, Wait(). β
Try perldoc Amiga::Exec for more info.
π₯ BUILDING π₯
to build perl under AmigaOS from the patched sources you will need to have a recent version of the SDK. version 53.29 is recommended, earlier versions will probably work too. π«Ά
with the help of Jarkko Hietaniemi the Configure system has been tweaked to run under abc-shell so the recommend build process is as follows:
stack 2000000
sh Configure -de
gmake
this will build the default setup that installs under SDK:local/newlib/lib/. periodt. π
πΈ CHANGES πΈ
August 2015
- Port to Perl 5.22
- Add handling of
NIL:toafstat() - Fix inheritance of environment variables by subprocesses.
- Fix
exec, andexitin "forked" subprocesses. - Fix issue with newlib's
unlink, which could cause infinite loops. - Add
flock()emulation usingIDOS->LockRecordthanks to Tony Cook for the suggestion. - Fix issue where
killwas using the wrong kind of process ID
27th November 2013
- Create new installation system based on
installperllinks and Amiga protection bits now set correctly. - Pod now defaults to text.
File::Specshould now recognise an Amiga style absolute path as well as an Unix style one. Relative paths must always be Unix style.
20th November 2013
- Configured to use
SDK:Local/C/perlto start standard scripts - Added
Amiga::Execmodule with support forWait()and AmigaOS signal numbers.
10th October 13
- First release of port to 5.16.3.
π SEE ALSO π
You like this port? See http://www.broad.ology.org.uk/amiga/ for how you can help. π«Ά
and that's the whole vibe bestie β this page is from perl v5.42.3, dated 2026-08-03, PERLAMIGA(1), and honestly it ate. go build something iconic. πβ¨ππ¦
π¦ where this page comes from
- fedora 43: perl-doc 5.42.3-524.fc43 Β· (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Unicode-3.0 AND LicenseRef-Fedora-UltraPermissive
- fedora 44: perl-doc 5.42.3-525.fc44 Β· (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Unicode-3.0 AND LicenseRef-Fedora-UltraPermissive
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms