1 If you read this file _as_is_, just ignore the funny characters you
2 see. It is written in the POD format (see pod/perlpod.pod) which is
3 specially designed to be readable as is.
7 README.epoc - Perl for EPOC
11 Perl 5 README file for the EPOC operating system.
15 EPOC is an OS for palmtops and mobile phones. For more informations look at:
16 http://www.symbian.com/
18 This is a port of perl to EPOC. It runs on ER5 machines: Psion 5mx,
19 5mx Pro, Psion Revo, Psion Netbook and on the Ericson M128. It runs on
20 ER3 Hardware (Series 5 classic), too. For more information about this
21 hardware please refer to http://www.psion.com.
23 Vendors which like to have support for their devices are free to send
26 =head1 INSTALLING PERL ON EPOC
28 You can download a ready-to-install version from
29 http://www.science-computing.de/o.flebbe/perl. You may find other
30 versions with some CPAN modules included at this location.
32 You will need at least ~4MB free space in order to install and run
35 Install perl.sis on the EPOC machine. If you do not know how to do
36 that, consult your PsiWin documentation.
38 Perl itself and its standard library is using 2.5 MB disk space.
39 Unicode support and some other modules are left out. (For details,
40 please look into epoc/createpkg.pl). If you like to use these modules,
41 you are free to copy them from a current perl release.
43 =head1 STARTING PERL ON EPOC
45 For ER5 machines, you can get the software Perlstart
46 http://www.science-computing.de/o.flebbe/perl. It contains file
47 recognizers for files with the extension .pl and .pm. With it you can
48 start perl with a double click on the camel icon. Be sure to configure
49 the perl installation drive first. You can even provide a script with
50 a special commandline, if needed.
52 Alternatively you can use the epocemx shell
54 If you have an ER3 machine (i.e. a PSION 5), you may have to supply the
55 full path to the perl executable C:\system\programs\perl.exe.
57 If you need to set the current directory of perl, please use the
58 command line switch '-x'. See L<perlrun> for details.
60 =head1 STOPPING PERL ON EPOC
62 You can stop a running perl process in the task list by closing the
63 application `STDOUT'. You can use the kill command in the epocemx
66 =head1 USING PERL ON EPOC
68 =head2 I/O Redirection on Epoc
70 You can redirect the output with the UNIX bourne shell syntax (this is
71 built into perl rather then eshell) For instance the following command
72 line will run the script test.pl with the output redirected to
73 stdout_file, the errors to stderr_file and input from stdin_file.
75 perl test.pl >stdout_file <stdin_file 2>stderr_file
77 Alternatively you can use 2>&1 in order to add the standard error
80 =head2 PATH Names on Epoc
82 ESHELL looks for executables in ?:/System/Programs. The SIS file
83 installs perl in this special folder directory. The default drive and
84 path are the same as folder the executable resides. The EPOC
85 filesystem is case-preserving, not case-sensitive.
87 The EPOC estdlib uses the ?: syntax for establishing a search order:
88 First in C: (RAM), then on D: (CF Card, if present) and last in Z:
89 (ROM). For instance ?:\a.txt searches for C:\a.txt, D:\a.txt (and
92 The perl @INC search path is implemented with '?:'. Your perl
93 executable can live on a different drive than the perl library or even
96 ESHELL paths have to be written with backslashes '\', file arguments
97 to perl with slashes '/'. Remember that I/O redirection is done
98 internally in perl, so please use slashes for redirects.
100 perl.exe C:/test.pl >C:/output.txt
102 =head2 Editors on Epoc
104 A suitable text editor can be downloaded from symbian
105 http://www.symbian.com/developer/downloads/files/editor.zip
107 =head2 Features of Perl on Epoc
109 The built-in function EPOC::getcwd returns the current directory.
111 =head2 Restrictions of Perl on Epoc
113 Features are left out, because of restrictions of the POSIX support in
120 backquoting, pipes etc.
124 system() does not inherit resources like: file descriptors,
129 signal, kill, alarm. Do not try to use them. This may be
130 impossible to implement on EPOC.
138 binmode does not exist. (No CR LF to LF translation for text files)
142 EPOC does not handle the notion of current drive and current
143 directory very well (i.e. not at all, but it tries hard to emulate
148 Heap is limited to 4MB.
152 Dynamic loading is not implemented.
156 =head2 Compiling Perl 5 on the EPOC cross compiling environment
158 Sorry, this is far too short.
164 You will need the epocemx SDK from Eberhard Mattes. Watch out for an
169 Get the Perl sources from your nearest CPAN site.
177 Build a native perl from this sources... Make sure to save the
178 miniperl executable as miniperl.native.
180 Start again from scratch
185 cp miniperl.native miniperl
189 emxsis perl.pkg perl.sis
193 =head1 SUPPORT STATUS OF PERL ON EPOC
195 I'm offering this port "as is". You can ask me questions, but I can't
196 guarantee I'll be able to answer them.
200 Olaf Flebbe <o.flebbe@science-computing.de>
201 http://www.science-computing.de/o.flebbe/perl/