| 1 |
.\" -*- mode: troff; coding: utf-8 -*- |
| 2 |
.\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45) |
| 3 |
.\" |
| 4 |
.\" Standard preamble: |
| 5 |
.\" ======================================================================== |
| 6 |
.de Sp \" Vertical space (when we can't use .PP) |
| 7 |
.if t .sp .5v |
| 8 |
.if n .sp |
| 9 |
.. |
| 10 |
.de Vb \" Begin verbatim text |
| 11 |
.ft CW |
| 12 |
.nf |
| 13 |
.ne \\$1 |
| 14 |
.. |
| 15 |
.de Ve \" End verbatim text |
| 16 |
.ft R |
| 17 |
.fi |
| 18 |
.. |
| 19 |
.\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. |
| 20 |
.ie n \{\ |
| 21 |
. ds C` "" |
| 22 |
. ds C' "" |
| 23 |
'br\} |
| 24 |
.el\{\ |
| 25 |
. ds C` |
| 26 |
. ds C' |
| 27 |
'br\} |
| 28 |
.\" |
| 29 |
.\" Escape single quotes in literal strings from groff's Unicode transform. |
| 30 |
.ie \n(.g .ds Aq \(aq |
| 31 |
.el .ds Aq ' |
| 32 |
.\" |
| 33 |
.\" If the F register is >0, we'll generate index entries on stderr for |
| 34 |
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index |
| 35 |
.\" entries marked with X<> in POD. Of course, you'll have to process the |
| 36 |
.\" output yourself in some meaningful fashion. |
| 37 |
.\" |
| 38 |
.\" Avoid warning from groff about undefined register 'F'. |
| 39 |
.de IX |
| 40 |
.. |
| 41 |
.nr rF 0 |
| 42 |
.if \n(.g .if rF .nr rF 1 |
| 43 |
.if (\n(rF:(\n(.g==0)) \{\ |
| 44 |
. if \nF \{\ |
| 45 |
. de IX |
| 46 |
. tm Index:\\$1\t\\n%\t"\\$2" |
| 47 |
.. |
| 48 |
. if !\nF==2 \{\ |
| 49 |
. nr % 0 |
| 50 |
. nr F 2 |
| 51 |
. \} |
| 52 |
. \} |
| 53 |
.\} |
| 54 |
.rr rF |
| 55 |
.\" ======================================================================== |
| 56 |
.\" |
| 57 |
.IX Title "PERLAMIGA 1" |
| 58 |
.TH PERLAMIGA 1 2025-11-16 "perl v5.40.1" "Perl Programmers Reference Guide" |
| 59 |
.\" For nroff, turn off justification. Always turn off hyphenation; it makes |
| 60 |
.\" way too many mistakes in technical documents. |
| 61 |
.if n .ad l |
| 62 |
.nh |
| 63 |
.SH NAME |
| 64 |
perlamiga \- Perl under AmigaOS 4.1 |
| 65 |
.SH NOTE |
| 66 |
.IX Header "NOTE" |
| 67 |
This is a port of Perl 5.22.1, it is a fresh port and not in any way |
| 68 |
compatible with my previous ports of Perl 5.8 and 5.16.3. This means |
| 69 |
you will need to reinstall / rebuild any third party modules you have |
| 70 |
installed. |
| 71 |
.PP |
| 72 |
newlib.library version 53.28 or greater is required. |
| 73 |
.SH SYNOPSIS |
| 74 |
.IX Header "SYNOPSIS" |
| 75 |
Once perl is installed you can read this document in the following way |
| 76 |
.PP |
| 77 |
.Vb 1 |
| 78 |
\& sh \-c "perldoc perlamiga" |
| 79 |
.Ve |
| 80 |
.PP |
| 81 |
or you may read \fIas is\fR: either as \fIREADME.amiga\fR, or \fIpod/perlamiga.pod\fR. |
| 82 |
.SH DESCRIPTION |
| 83 |
.IX Header "DESCRIPTION" |
| 84 |
.SS "Prerequisites for running Perl 5.22.1 under AmigaOS 4.1" |
| 85 |
.IX Subsection "Prerequisites for running Perl 5.22.1 under AmigaOS 4.1" |
| 86 |
.IP "\fBAmigaOS 4.1 update 6 with all updates applied as of 9th October 2013\fR" 6 |
| 87 |
.IX Item "AmigaOS 4.1 update 6 with all updates applied as of 9th October 2013" |
| 88 |
The most important of which is: |
| 89 |
.IP "\fBnewlib.library version 53.28 or greater\fR" 6 |
| 90 |
.IX Item "newlib.library version 53.28 or greater" |
| 91 |
.PD 0 |
| 92 |
.IP "\fBAmigaOS SDK\fR" 6 |
| 93 |
.IX Item "AmigaOS SDK" |
| 94 |
.PD |
| 95 |
Perl installs into the SDK directory structure and expects many of the |
| 96 |
build tools present in the SDK to be available. So for the best results |
| 97 |
install the SDK first. |
| 98 |
.IP \fBabc-shell\fR 6 |
| 99 |
.IX Item "abc-shell" |
| 100 |
If you do not have the SDK installed you must at least have abc-shell |
| 101 |
installed or some other suitable sh port. This is required to run |
| 102 |
external commands and should be available as 'sh' in your path. |
| 103 |
.SS "Starting Perl programs under AmigaOS 4.1" |
| 104 |
.IX Subsection "Starting Perl programs under AmigaOS 4.1" |
| 105 |
Perl may be run from the AmigaOS shell but for best results should be |
| 106 |
run under abc-shell. (abc-shell handles file globbing, pattern |
| 107 |
expansion, and sets up environment variables in the UN*Xy way that |
| 108 |
Perl expects.) |
| 109 |
.PP |
| 110 |
For example: |
| 111 |
.PP |
| 112 |
.Vb 3 |
| 113 |
\& New Shell process 10 |
| 114 |
\& 10.AmigaOS4:> sh |
| 115 |
\& /AmigaOS4>perl path:to/myprog arg1 arrg2 arg3 |
| 116 |
.Ve |
| 117 |
.PP |
| 118 |
Abc-shell can also launch programs via the #! syntax at the start of |
| 119 |
the program file, it's best use the form #!SDK:Local/C/perl so that |
| 120 |
the AmigaOS shell may also find perl in the same way. AmigaOS requires |
| 121 |
the script bit to be set for this to work |
| 122 |
.PP |
| 123 |
.Vb 2 |
| 124 |
\& 10.AmigaOS4:> sh |
| 125 |
\& /AmigaOS4>myprog arg1 arrg2 arg3 |
| 126 |
.Ve |
| 127 |
.SS "Limitations of Perl under AmigaOS 4.1" |
| 128 |
.IX Subsection "Limitations of Perl under AmigaOS 4.1" |
| 129 |
.IP "\fBNested Piped programs can crash when run from older abc-shells\fR" 6 |
| 130 |
.IX Item "Nested Piped programs can crash when run from older abc-shells" |
| 131 |
abc-shell version 53.2 has a bug that can cause crashes in the |
| 132 |
subprocesses used to run piped programs, if a later version is |
| 133 |
available you should install it instead. |
| 134 |
.IP "\fBIncorrect or unexpected command line unescaping\fR" 6 |
| 135 |
.IX Item "Incorrect or unexpected command line unescaping" |
| 136 |
newlib.library 53.30 and earlier incorrectly unescape slashed escape |
| 137 |
sequences e.g. \e" \en \et etc requiring unusual extra escaping. |
| 138 |
.IP "\fBStarting subprocesses via open has limitations\fR" 6 |
| 139 |
.IX Item "Starting subprocesses via open has limitations" |
| 140 |
.Vb 1 |
| 141 |
\& open FH, "command |" |
| 142 |
.Ve |
| 143 |
.Sp |
| 144 |
Subprocesses started with open use a minimal \fBpopen()\fR routine and |
| 145 |
therefore they do not return pids usable with waitpid etc. |
| 146 |
.IP "If you find any other limitations or bugs then let me know." 6 |
| 147 |
.IX Item "If you find any other limitations or bugs then let me know." |
| 148 |
Please report bugs in this version of perl to [email protected] |
| 149 |
in the first instance. |
| 150 |
.SH INSTALLATION |
| 151 |
.IX Header "INSTALLATION" |
| 152 |
This guide assumes you have obtained a prebuilt archive from os4depot.net. |
| 153 |
.PP |
| 154 |
Unpack the main archive to a temporary location (RAM: is fine). |
| 155 |
.PP |
| 156 |
Execute the provided install script from shell or via its icon. |
| 157 |
.PP |
| 158 |
You \fBmust not\fR attempt to install by hand. |
| 159 |
.PP |
| 160 |
Once installed you may delete the temporary archive. |
| 161 |
.PP |
| 162 |
This approach will preserve links in the installation without creating |
| 163 |
duplicate binaries. |
| 164 |
.PP |
| 165 |
If you have the earlier ports perl 5.16 or 5.8 installed you may like |
| 166 |
to rename your perl executable to perl516 or perl58 or something |
| 167 |
similar before the installation of 5.22.1, this will allow you to use |
| 168 |
both versions at the same time. |
| 169 |
.SH "Amiga Specific Modules" |
| 170 |
.IX Header "Amiga Specific Modules" |
| 171 |
.SS Amiga::ARexx |
| 172 |
.IX Subsection "Amiga::ARexx" |
| 173 |
The Amiga::ARexx module allows you to easily create a perl based ARexx |
| 174 |
host or to send ARexx commands to other programs. |
| 175 |
.PP |
| 176 |
Try \f(CW\*(C`perldoc Amiga::ARexx\*(C'\fR for more info. |
| 177 |
.SS Amiga::Exec |
| 178 |
.IX Subsection "Amiga::Exec" |
| 179 |
The Amiga::Exec module introduces support for \fBWait()\fR. |
| 180 |
.PP |
| 181 |
Try \f(CW\*(C`perldoc Amiga::Exec\*(C'\fR for more info. |
| 182 |
.SH BUILDING |
| 183 |
.IX Header "BUILDING" |
| 184 |
To build perl under AmigaOS from the patched sources you will need to |
| 185 |
have a recent version of the SDK. Version 53.29 is recommended, |
| 186 |
earlier versions will probably work too. |
| 187 |
.PP |
| 188 |
With the help of Jarkko Hietaniemi the Configure system has been tweaked to |
| 189 |
run under abc-shell so the recommend build process is as follows. |
| 190 |
.PP |
| 191 |
.Vb 3 |
| 192 |
\& stack 2000000 |
| 193 |
\& sh Configure \-de |
| 194 |
\& gmake |
| 195 |
.Ve |
| 196 |
.PP |
| 197 |
This will build the default setup that installs under SDK:local/newlib/lib/ |
| 198 |
.SH CHANGES |
| 199 |
.IX Header "CHANGES" |
| 200 |
.IP "\fBAugust 2015\fR" 6 |
| 201 |
.IX Item "August 2015" |
| 202 |
.RS 6 |
| 203 |
.PD 0 |
| 204 |
.IP "Port to Perl 5.22" 2 |
| 205 |
.IX Item "Port to Perl 5.22" |
| 206 |
.IP "Add handling of NIL: to \fBafstat()\fR" 2 |
| 207 |
.IX Item "Add handling of NIL: to afstat()" |
| 208 |
.IP "Fix inheritance of environment variables by subprocesses." 2 |
| 209 |
.IX Item "Fix inheritance of environment variables by subprocesses." |
| 210 |
.IP "Fix exec, and exit in ""forked"" subprocesses." 2 |
| 211 |
.IX Item "Fix exec, and exit in ""forked"" subprocesses." |
| 212 |
.IP "Fix issue with newlib's unlink, which could cause infinite loops." 2 |
| 213 |
.IX Item "Fix issue with newlib's unlink, which could cause infinite loops." |
| 214 |
.IP "Add \fBflock()\fR emulation using IDOS\->LockRecord thanks to Tony Cook for the suggestion." 2 |
| 215 |
.IX Item "Add flock() emulation using IDOS->LockRecord thanks to Tony Cook for the suggestion." |
| 216 |
.IP "Fix issue where kill was using the wrong kind of process ID" 2 |
| 217 |
.IX Item "Fix issue where kill was using the wrong kind of process ID" |
| 218 |
.RE |
| 219 |
.RS 6 |
| 220 |
.RE |
| 221 |
.IP "\fB27th November 2013\fR" 6 |
| 222 |
.IX Item "27th November 2013" |
| 223 |
.RS 6 |
| 224 |
.IP "Create new installation system based on installperl links and Amiga protection bits now set correctly." 2 |
| 225 |
.IX Item "Create new installation system based on installperl links and Amiga protection bits now set correctly." |
| 226 |
.IP "Pod now defaults to text." 2 |
| 227 |
.IX Item "Pod now defaults to text." |
| 228 |
.IP "File::Spec should now recognise an Amiga style absolute path as well as an Unix style one. Relative paths must always be Unix style." 2 |
| 229 |
.IX Item "File::Spec should now recognise an Amiga style absolute path as well as an Unix style one. Relative paths must always be Unix style." |
| 230 |
.RE |
| 231 |
.RS 6 |
| 232 |
.RE |
| 233 |
.IP "\fB20th November 2013\fR" 6 |
| 234 |
.IX Item "20th November 2013" |
| 235 |
.RS 6 |
| 236 |
.IP "Configured to use SDK:Local/C/perl to start standard scripts" 2 |
| 237 |
.IX Item "Configured to use SDK:Local/C/perl to start standard scripts" |
| 238 |
.IP "Added Amiga::Exec module with support for \fBWait()\fR and AmigaOS signal numbers." 2 |
| 239 |
.IX Item "Added Amiga::Exec module with support for Wait() and AmigaOS signal numbers." |
| 240 |
.RE |
| 241 |
.RS 6 |
| 242 |
.RE |
| 243 |
.IP "\fB10th October 13\fR" 6 |
| 244 |
.IX Item "10th October 13" |
| 245 |
.PD |
| 246 |
First release of port to 5.16.3. |
| 247 |
.SH "SEE ALSO" |
| 248 |
.IX Header "SEE ALSO" |
| 249 |
You like this port? See <http://www.broad.ology.org.uk/amiga/> |
| 250 |
for how you can help. |