Perl for Android ARMv7

This page contains (links to) sample programs for building and using Perl on Android.

Download

This is a pre-built tarball. It expects to be unpacked into /data/local/perl and it expects the environment to be set up somewhat like setup-env.sh does:

perl-5.22.0-armv7l-linux-android-5.0-20150828.tar.gz

perl-5.22.0-armv7l-linux-android-4.4-20150903.tar.gz

Run Perl

  1. First, set up the environment via setup-env.sh

      . ./setup-env.sh
  2. Then run Perl

      perl -v

Required module

The module Android currently lives (only) at https://github.com/Corion/perl-android .

Building Perl

  1. You need CCTools installed

  2. Download the 5.22.0 Perl tarball (or a later version) and unpack it into the directory perl-5.22.0.

  3. Run the following shell script:

      ash ./build-perl-5.22.0.sh

    build-perl-5.22.0.sh

Files

01-hello-world.pl

02-dump-keep.pl

03-vibrate.pl

04-send-input.pl

05-screenshot.pl

build-perl-5.22.0.sh

setup-env.sh

Android 5

perl-5.22.0-armv7l-linux-android-5.0-20150828.tar.gz

Android 4.4

perl-5.22.0-armv7l-linux-android-4.4-20150903.tar.gz

Author

Created by Max Maischein mailto:corion@cpan.org, last updated 20150903.