You are viewing the version of this documentation from Perl 5.40.4-RC1. This is a development version of Perl.

CONTENTS

NAME

perlamiga - Perl under AmigaOS 4.1

NOTE

This is a port of Perl 5.22.1, it is a fresh port and not in any way compatible with my previous ports of Perl 5.8 and 5.16.3. This means you will need to reinstall / rebuild any third party modules you have installed.

newlib.library version 53.28 or greater is required.

SYNOPSIS

Once perl is installed you can read this document in the following way

sh -c "perldoc perlamiga"

or you may read as is: either as README.amiga, or pod/perlamiga.pod.

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

The most important of which is:

newlib.library version 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 sh port. This is required to run external commands and should be available as 'sh' in your path.

Starting Perl programs under AmigaOS 4.1

Perl may be run from the AmigaOS shell but for best results 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 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.library 53.30 and earlier incorrectly unescape slashed escape sequences e.g. \" \n \t etc 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.uk in 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.

You must not attempt to install by hand.

Once installed you may delete the temporary archive.

This approach will preserve links in the installation without creating duplicate binaries.

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.