Posted: August 23rd, 2010 | Author: Pedro A. | Filed under: Perl | No Comments »
<code>#!/usr/bin/perl
use Fcntl qw(LOCK_EX LOCK_NB);
use File::NFSLock;
# Try to get an exclusive lock on myself.
my $lock = File::NFSLock->new($0, LOCK_EX|LOCK_NB);
die "$0 is already running!\n" unless $lock;
</code>
Posted: April 9th, 2009 | Author: Pedro A. | Filed under: Perl | No Comments »
Pessoal, segue minha traduçao livre do artigo da IBM sobre o Perl e o Amazon Cloud escrito Teodor Zlatanov.
Original em: Cultured Perl: Perl and the Amazon cloud, Part 1
Aprenda o Básico sobre o Amazon S3 e os serviços SimpleDB construindo um site simples de compartilhamento de fotos.
Na Parte 1 dessa série de 5 partes, Ted Zlatanov explicará os pros e contras do Amazon Simple Storage Service (S3) e do SimpleDB. Esse visual tour explicará a arquitetura dos dois serviços e como utilizá-los em exemplos práticos, para isso será construído um site de compartilhamento de fotos utilizando uma biblioteca em Perl
Requisitos:
É preciso ter conhecimento básico de HTTP e HTML, bem como conhecimento intermediário em JavaScript e Perl (particularmente mod_perl). Algum conhecimento de bancos de dados relacionais, armazenamento e redes ajudarão. A série ficará cada vez mais técnica, então veja a área de “Recursos” se você precisar de ajuda com algum dos tópicos.
Nessa série, utilizarei o domínio share.lifelogs.com para construir os exemplos. Agora vamos dar uma olhada no Amazon S3.
Read the rest of this entry »
Posted: November 11th, 2005 | Author: Pedro A. | Filed under: Perl | No Comments »
I was thinkg another day about some deployment problems I used to have with Perl applications. In my opinion, compared with other languages (Java, .Net) Perl was getting behind in this issue, but today I found out it wasn’t true.
PAR is already here, with this package we can put all application’s dependence files in a single compacted archive and deploy it to the final user. Use such thing at enterprise environment must be something really good and productive.
Perl community should be aware of thing like this and advocate more about Perl advantages, maturity and capacity to adequate changes.
When I start using this package at my development site I´ll put some more news here.
PAR Package: http://search.cpan.org/dist/PAR/
http://search.cpan.org/dist/PAR/