Thread muss perl script anpassen, hilfe! (8 answers)
Opened by Rebel2k at 2007-09-05 17:39

pq
 2007-09-05 20:01
#99138 #99138
User since
2003-08-04
12209 Artikel
Admin1
[Homepage]
user image
Code: (dl )
1
2
3
4
5
6
open my $fh, "<", "rechner.lst" or die $!;
open my $wfh, ">", "neu.lst" or die $!;
while (<$fh>) {
my $data = (split /\./, $_)[0];
print $wfh "$data\n";
}
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread muss perl script anpassen, hilfe!