- Perl 5.12 went stable on April 2010, with lots of fixes, and a few new features. See the deltas.
- Rakudo is making progress at a good rate, with new contributors, and it's getting faster and more complete every day. Parrot guys are doing a great job there too.
- cpanminus seems to be the next big thing of the language, and it's a perfect companion of local::lib and even perlbrew.
local::lib is one of the wizard mst's magic spells to enable local repositories of libs per project. That means you can attach cpan libs to your apps, and then control the exact version you ship with each app.
the complete install process of the environment is the following:
mkdir ~/myperltmp
cd ~/myperltmp
wget cpanmin.us
chmod +x cpanm
wget http://search.cpan.org/CPAN/authors/id/M/MS/MSTROUT/local-lib-1.006000.tar.gz
tar zxvf local-lib-1.006000.tar.gz
cd local-lib-1.006000
perl Makefile.PL --bootstrap
make test && make install
echo 'eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)' >>~/.bashrc
And now you're ready to go.
./cpanm DBIx::Class
./cpanm Moose
And with 0 questions, you'll have DBIx::Class and Moose in your ~/perl5 directory.
If you added the last line to your .bashrc, then everything should work. You can use local::lib "~otherpath"; to have multiple scenarios to try your modules/apps on. Next thing to try is perlbrew, but that's for another day.
Mainly I extracted the info from here and here (and perldocs, of course)
Before leaving, let me leave you with a great talk by mst. Full of info, and full of lolz, and nearly no swearing (Wow! surprise!)
No hay comentarios:
Publicar un comentario