perl

Prepare perl development environment

curl -L http://install.perlbrew.pl | bash

perlbrew install --64int stable
perlbrew list
perlbrew switch perl-...

curl -L https://cpanmin.us | perl - App::cpanminus

cpanm Mojolicious
cpanm Mango

Installing Request Tracker

adduser rt
 
su - rt
 
wget ..../rt-4.2.2.tar.gz
 
tar xf rt-4.2.2.tar.gz
 
curl -L <a href="http://cpanmin.us" title="http://cpanmin.us">http://cpanmin.us</a> | perl - App::cpanminus
 
~/perl5/bin/cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
 
cd rt-4.2.2
 
 
./configure --prefix=$HOME --with-my-user-group
 
RT_FIX_DEPS_CMD='cpanm %s' make fixdeps
 
make install
 
adduser www-data rt

LEARNING PERL

If you are new to Perl, we recommend Learn Perl in 2 hours 30 minutes for a quick introduction, or the Modern Perl book, freely available in many formats. Both are excellent introductions to the language. For more books and documentation, check out http://learn.perl.org/ .

Building Debian packages of Perl modules

apt-get install dh-make-perl

dh-make-perl --build --cpan HTML::Template::JIT

or

cpan2deb Foo::Bar

замена строки в нескольких файлах

find -type f -iname *.txt | xargs perl -p -i -e 's/foo/bar/g'