use strict; use warnings; use IO::File; my @files = qw(adressen.txt); my $fh_in = IO::File->new; # Ergebnis Datei my $fh_out = IO::File->new; $fh_out->open('result.txt', O_CREAT|O_RDWR) or die "IO-Error: $!"; foreach my $file(@files){ $fh_in->open($file, 'r') or die $!; my $fstline = <$fh_in>; # first line skip my $offset = $fh_in->tell; # brauchen wir das?, Nö # Rest der Datei von $fh_in nach $fh_out while( read( $fh_in, my $buffer, 1024 ) ){ $fh_out->print($buffer); } $fh_in->close; } $fh_out->close;