Perl
From SkyWiki
(Difference between revisions)
m |
m |
||
Line 16: | Line 16: | ||
perl -NCPAN -eshell | perl -NCPAN -eshell | ||
- | CPAN- | + | CPAN-Initialisierung: |
<pre> | <pre> | ||
install Bundle::libnet | install Bundle::libnet | ||
Line 26: | Line 26: | ||
install Archive::Tar | install Archive::Tar | ||
install GD | install GD | ||
- | |||
</pre> | </pre> | ||
Revision as of 10:53, 20 September 2008
./Configure -d -D prefix=$HOME make make install
-> in Perl-Scripts eintragen:
#!home/mike/bin/perl -w
in .profile, .bashrc o.ä.:
export PATH=$HOME/bin:$PATH
CPAN-Aufruf:
perl -NCPAN -eshell
CPAN-Initialisierung:
install Bundle::libnet install Bundle::CPAN install MD5 install Bundle::LWP install HTML::Parser install HTML::Tree install Archive::Tar install GD
Perl syntax
read a file line by line
open(IN, '<'.$ARGV[0]); foreach(<IN>) { chomp; print $_, "\n"; } close(IN);