Posted on July 24th, 2008 by linux
This error message took me lots of effort and time to solve it. The problem is that before storing binary data strings in the postgresql database the binary strings need to be escaped before storing them. There is on the google available subroutine for per which is doing this job. It is called escape_bytea. Anyway [...]
Filed under: Administration, Database, Debian, Perl | No Comments »
Posted on June 13th, 2008 by linux
Sometimes you encounter situation when you need a perl module to support your program but perl module is not available from standard linux repositories. Installing perl module from source code is not always good idea so what would be the best is to create package for a particular module using dh-make-perl command. In my case [...]
Filed under: Administration, Debian, Linux, Perl, Ubuntu | No Comments »
Posted on April 28th, 2008 by linux
Here is a perl script example how to create temporary file on the file system:
TEMPLATE DIR AND SUFIX are option !
#!/usr/bin/perl
my $tempfile = new File::Temp ( TEMPLATE => ‘tempfile_XXX’, DIR => ‘/tmp/’, SUFIX => ” );
this will create a temporary file in /tmp/ directory with name tempfile_XXX where X is random generated character.
Filed under: Linux, Perl, Programming | No Comments »