in reply to Re: Data length in strings
in thread Data length in strings
open(FH,"<$source") || die "cant open $source: $!\n"; while (<FH>){ push @file, $_; if ($_ =~ /^-- End --/) { $zaehler++; open(GUN,">$destiny") || die "can write to $destinyfile$zaehle +r:$!"; foreach $zeile (@file) { print GUN $zeile; }#endforeach undef @file; close(GUN); print "$zaehler:\n"; }#endif }#endwhile close(FH);
Edit ar0n -- 2001-07-24 fixed excessive whitespace
|
|---|