Debian Codegraph @

upstream/fedora-44/man1/perlamiga.1

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