[bcn-pm] Language::Pythonesque

Xavier Noria fxn at hashref.com
Fri Feb 27 12:52:26 CST 2004


El modul de que parlarem ahir es Language::Pythonesque, fa que aixo 
funcioni:

     use Language::Pythonesque; # aquest punt i coma cal

     sub foo
         my $x = shift
         $x*2

     for my $i (1..10)
         print foo $i
         print "\n"

     print "OK, funciona.\n"

mola eh? :-)

No esta a CPAN (potser perque es una beta, i ni tan sols compila el .pm 
del tarball), jo el vaig trobar per casualitat en aquest directori:

     http://www.csse.monash.edu.au/~damian/CPAN/

L'error del tarball es veu de seguida si voleu jugar amb el modul.

-- fxn




More information about the Barcelona-pm mailing list