Software and more...

Perl Programming

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

Online resources

Perl documentation

  • To get the documentation about a perl function use:
    perldoc -f <function>

Samples & Examples

  • Set to upper-case the first later of a string:

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

Using CPAN

  • Launch the CPAN shell:
perl -MCPAN -e 'shell'

  • Install module from the CPAN shell:
install <module-name>

  • Quit the CPAN shell:
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.

  • Install Syntax::Highlight::Perl by typing install Syntax-Highlight-Perl from the PPM.
  • Check for the latest binaries on the CPAN page or download Tk::CodeText v0.3.4 binaries.
  • Unzip the binaries.
  • From the binaries directory run the commands specified above.

Perl packages

Here is some information about Perl packages have been using.
  • For all things HTTP related: libwww
  • For UTF8 convertion: MapUTF8

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

  File Size Date By Actions
txt SymAppGen.pl.txt
Generates new Symbian project based on a template
3.0 K 17 Feb 2006 - 00:33 StephaneLenclud props, move
else alp
Parses apache access log for statistics
0.9 K 17 Feb 2006 - 01:28 StephaneLenclud props, move
txt linefilter.pl.txt
Filters file's line using a set of regexp
0.7 K 07 Mar 2006 - 10:51 StephaneLenclud props, move
txt printenv.pl.txt
Display every environment variable
0.3 K 17 Feb 2006 - 00:08 StephaneLenclud props, move
txt sendmail.pl.txt
Send a mail using Net::SMTP
0.4 K 08 May 2006 - 22:12 StephaneLenclud props, move
txt symcgen.pl.txt
Generates template C++ file for Symbian programming
3.2 K 17 Feb 2006 - 00:25 StephaneLenclud props, move
r27 - 31 Aug 2008 - 13:19:23 - StephaneLenclud
Copyright &&copy 2006-2008 by the contributing authors. All right reserved.
Ideas, requests, problems send us feedback.
Syndicate this site RSSATOM