z.b.aus 45.12.12.1234.56.78.89
soll werden:test.exe 45.12.12.12 -ctest.exe 34.56.78.89 -c
wie stell ich das am besten an?
Datum: 24.08.2006-14:31
open( OUT,">textdatei_neu.txt" ){foreach ( @content ){print OUT "test.exe $_ -c";}close OUT;}
Datum: 24.08.2006-16:58
open(DAT, ">textdatei_neu.txt");print DAT @content;close DAT;
Datum: 24.08.2006-17:30
Datum: 24.08.2006-17:39
use Tie::File;my $file = '/path/to/file';tie my @array,'Tie::File',$file or die $!;for(@array){ chomp; $_ = 'test.exe '.$_." -c\n";}untie @array
my $file = '/path/to/file';
tie my @array,'Tie::File',$file or die $!;for(@array){ chomp; $_ = 'test.exe '.$_." -c\n";}untie @array
Datum: 24.08.2006-17:44