1PERLAMIGA(1) Perl Programmers Reference Guide PERLAMIGA(1)
2
3
4
6 perlamiga - Perl under AmigaOS 4.1
7
9 This is a port of Perl 5.22.1, it is a fresh port and not in any way
10 compatible with my previous ports of Perl 5.8 and 5.16.3. This means
11 you will need to reinstall / rebuild any third party modules you have
12 installed.
13
14 newlib.library version 53.28 or greater is required.
15
17 Once perl is installed you can read this document in the following way
18
19 sh -c "perldoc perlamiga"
20
21 or you may read as is: either as README.amiga, or pod/perlamiga.pod.
22
24 Prerequisites for running Perl 5.22.1 under AmigaOS 4.1
25 AmigaOS 4.1 update 6 with all updates applied as of 9th October 2013
26 The most important of which is:
27
28 newlib.library version 53.28 or greater
29 AmigaOS SDK
30 Perl installs into the SDK directory structure and expects many
31 of the build tools present in the SDK to be available. So for the
32 best results install the SDK first.
33
34 abc-shell
35 If you do not have the SDK installed you must at least have abc-
36 shell installed or some other suitable sh port. This is required
37 to run external commands and should be available as 'sh' in your
38 path.
39
40 Starting Perl programs under AmigaOS 4.1
41 Perl may be run from the AmigaOS shell but for best results should be
42 run under abc-shell. (abc-shell handles file globbing, pattern
43 expansion, and sets up environment variables in the UN*Xy way that Perl
44 expects.)
45
46 For example:
47
48 New Shell process 10
49 10.AmigaOS4:> sh
50 /AmigaOS4>perl path:to/myprog arg1 arrg2 arg3
51
52 Abc-shell can also launch programs via the #! syntax at the start of
53 the program file, it's best use the form #!SDK:Local/C/perl so that the
54 AmigaOS shell may also find perl in the same way. AmigaOS requires the
55 script bit to be set for this to work
56
57 10.AmigaOS4:> sh
58 /AmigaOS4>myprog arg1 arrg2 arg3
59
60 Limitations of Perl under AmigaOS 4.1
61 Nested Piped programs can crash when run from older abc-shells
62 abc-shell version 53.2 has a bug that can cause crashes in the
63 subprocesses used to run piped programs, if a later version is
64 available you should install it instead.
65
66 Incorrect or unexpected command line unescaping
67 newlib.library 53.30 and earlier incorrectly unescape slashed
68 escape sequences e.g. \" \n \t etc requiring unusual extra
69 escaping.
70
71 Starting subprocesses via open has limitations
72 open FH, "command |"
73
74 Subprocesses started with open use a minimal popen() routine and
75 therefore they do not return pids usable with waitpid etc.
76
77 If you find any other limitations or bugs then let me know.
78 Please report bugs in this version of perl to
79 andy@broad.ology.org.uk in the first instance.
80
82 This guide assumes you have obtained a prebuilt archive from
83 os4depot.net.
84
85 Unpack the main archive to a temporary location (RAM: is fine).
86
87 Execute the provided install script from shell or via its icon.
88
89 You must not attempt to install by hand.
90
91 Once installed you may delete the temporary archive.
92
93 This approach will preserve links in the installation without creating
94 duplicate binaries.
95
96 If you have the earlier ports perl 5.16 or 5.8 installed you may like
97 to rename your perl executable to perl516 or perl58 or something
98 similar before the installation of 5.22.1, this will allow you to use
99 both versions at the same time.
100
102 Amiga::ARexx
103 The Amiga::ARexx module allows you to easily create a perl based ARexx
104 host or to send ARexx commands to other programs.
105
106 Try "perldoc Amiga::ARexx" for more info.
107
108 Amiga::Exec
109 The Amiga::Exec module introduces support for Wait().
110
111 Try "perldoc Amiga::Exec" for more info.
112
114 To build perl under AmigaOS from the patched sources you will need to
115 have a recent version of the SDK. Version 53.29 is recommended, earlier
116 versions will probably work too.
117
118 With the help of Jarkko Hietaniemi the Configure system has been
119 tweaked to run under abc-shell so the recommend build process is as
120 follows.
121
122 stack 2000000
123 sh Configure -de
124 gmake
125
126 This will build the default setup that installs under
127 SDK:local/newlib/lib/
128
130 August 2015
131 Port to Perl 5.22
132 Add handling of NIL: to afstat()
133 Fix inheritance of environment variables by subprocesses.
134 Fix exec, and exit in "forked" subprocesses.
135 Fix issue with newlib's unlink, which could cause infinite loops.
136 Add flock() emulation using IDOS->LockRecord thanks to Tony Cook
137 for the suggestion.
138 Fix issue where kill was using the wrong kind of process ID
139 27th November 2013
140 Create new installation system based on installperl links and
141 Amiga protection bits now set correctly.
142 Pod now defaults to text.
143 File::Spec should now recognise an Amiga style absolute path as
144 well as an Unix style one. Relative paths must always be Unix
145 style.
146 20th November 2013
147 Configured to use SDK:Local/C/perl to start standard scripts
148 Added Amiga::Exec module with support for Wait() and AmigaOS
149 signal numbers.
150 10th October 13
151 First release of port to 5.16.3.
152
154 You like this port? See <http://www.broad.ology.org.uk/amiga/> for how
155 you can help.
156
157
158
159perl v5.26.3 2018-03-01 PERLAMIGA(1)