Slion.net>Dev>PerlHome

Perl Programming

In that topic one should find help and samples about perl programming.

Online resources

Perl documentation

Samples & Examples

my $dummy="lala";
$dummy=~s/(^\w)/uc($1)/e;
#$dummy[0]=uc($dummy[0]);
print "$dummy"; #Will be "Lala"

Using CPAN

perl -MCPAN -e 'shell'

install <module-name>

q

CPAN Configuration

On a Debian machine the CPAN configuration is stored in:

/etc/perl/CPAN/Config.pm

Installing packages on MS Windows

Automatically

Use ActivePerl Perl Package Manager PPM and do:
install <package-name>

Manually

From the package directory:
perl Makefile.pl
nmake
nmake install

Installing Tk::CodeText package on MS Windows with ActivePerl? 5.6.0.631

That specific version of Perl is the one recomended by Symbian for using their tool chain. That's the reason why I tend to stick to that Perl version. However on my personal machine have been using 5.6.0.638 and it seems to behave well with the Symbian tool chain. Anyway in both cases 631 and 638 I could not get PPM to install Tk::CodeText for me thus this article.

Perl packages

Here is some information about Perl packages have been using.

Crypt::SSLeay for Windows HTTPS support.

Symbian Perl

Perl development

Object oriented Perl

How-to check if a perl module is installed

Just run:

perl -le 'use MyModuleName';

If you don't get any error it means that perl module is installed on your machine.

Related topics

BookmarksHome

I Attachment Action Size Date Who Comment
txttxt SymAppGen.pl.txt manage 3.0 K 17 Feb 2006 - 00:33 StephaneLenclud Generates new Symbian project based on a template
elseEXT alp manage 0.9 K 17 Feb 2006 - 01:28 StephaneLenclud Parses apache access log for statistics
txttxt linefilter.pl.txt manage 0.7 K 07 Mar 2006 - 10:51 StephaneLenclud Filters file's line using a set of regexp
txttxt printenv.pl.txt manage 0.3 K 17 Feb 2006 - 00:08 StephaneLenclud Display every environment variable
txttxt sendmail.pl.txt manage 0.4 K 08 May 2006 - 22:12 StephaneLenclud Send a mail using Net::SMTP
txttxt symcgen.pl.txt manage 3.2 K 17 Feb 2006 - 00:25 StephaneLenclud Generates template C++ file for Symbian programming