Are there an options to install Perl modules like LWP on Android (on SL4A environment ). Also, are there prepackaged Perl modules that can be installed on Android, and is there an option to see which modules are installed using the Android Debug Bridge.
To install Perl modules using CPAN, you need to use the cpan command-line utility. You can either run cpan with arguments from the command-line interface, for example, to install a module (e.g Geo::IP) use the -i flag as shown.
No. No. Perl can surely be asked to provide this, but you can start by looking under
$ ls /data/data/com.googlecode.perlforandroid/files/perl/5.10.0/
SL4A's perl actually comes with CPAN.pm - but not all of its dependencies, as you'll see with the errors you get with
$ perl -MCPAN -eshell
I used CPAN.pm on a Sharp Zaurus, running OpenBSD, and I used a CPAN.pm-less hack to install modules off of CPAN so that the process would be easier on my 64MB of RAM. My Galaxy Tab has slightly better hardware. But at present, nobody's done the work to make (unrooted) Android a comfortable home for Perl -- and as Perl is poorly-suited to Android app development, that may remain the case for a while.
EDIT: Well, try these:
App::FatPacker
App::cpanminus
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With