Posts mit dem Label perl werden angezeigt. Alle Posts anzeigen
Posts mit dem Label perl werden angezeigt. Alle Posts anzeigen

Freitag, September 05, 2008

install Perl module in home directory

On a Unix machine without root access install missing Perl modules into home directory.
  • cd ~/perl.local

  • tar xzf ../Perl-Modul-0.89.tar.gz

  • perl Makefile.PL PREFIX=~/perl.local

  • make

  • make test

  • make install

In the Perl file add use lib with the local path. After this follows the normal use of the module.

use lib "/home/markus/perl.local/lib/perl5/site_perl/";
use Perl::Modul;

Sonntag, Juli 29, 2007

undef

Bei perl funktioniert der test auf "undef" nur mit "eq". "==" ist immer true.

if ($storedData{$showname} eq undef)