hi there,
I got a problem with substitution.
example string(I read that string from a file):
dont know why "it is that" way
if I substitute with:
$three=~s/"/-eee-/g;
and print it with:
print "$three\n";
prints: dont know why -eee-it is that-eee- way
looks fine, but if i print to a file:
print NEW_CFG_FILE "HOSTNAME "."\""."$three"."\""."\n";
prints: HOSTNAME "dont know why "it is that" way"
it takes the $three before substitution. why?
thanks for any help
michael
I got a problem with substitution.
example string(I read that string from a file):
dont know why "it is that" way
if I substitute with:
$three=~s/"/-eee-/g;
and print it with:
print "$three\n";
prints: dont know why -eee-it is that-eee- way
looks fine, but if i print to a file:
print NEW_CFG_FILE "HOSTNAME "."\""."$three"."\""."\n";
prints: HOSTNAME "dont know why "it is that" way"
it takes the $three before substitution. why?
thanks for any help
michael