J
josef hader
I am not too familiar with perl
, so it may be a trivial problem...
I have to exchange in an input file containing
"parameter alpha=value; "
value into value1:
"parameter alpha=value1; "
I used to have it like this:
"parameter: alpha: value "
where the perl program (written by someone else) looked like
if ($zeile =~ m/alpha/ ){
my @eintr = split(/:/,$zeile);
$eintr[2]=value1;
print PARA_WRITE $eintr[0].":".$eintr[1].":".$eintr[2]."\n";
}
(in PARA_WRITE one writes into a file, $zeile is the line read in from
the file)
What do I have to change?
thanks!!
I have to exchange in an input file containing
"parameter alpha=value; "
value into value1:
"parameter alpha=value1; "
I used to have it like this:
"parameter: alpha: value "
where the perl program (written by someone else) looked like
if ($zeile =~ m/alpha/ ){
my @eintr = split(/:/,$zeile);
$eintr[2]=value1;
print PARA_WRITE $eintr[0].":".$eintr[1].":".$eintr[2]."\n";
}
(in PARA_WRITE one writes into a file, $zeile is the line read in from
the file)
What do I have to change?
thanks!!