in reply to Re: In-place editing of files
in thread In-place editing of files
here's that awkward first solution of mine using the temp val:
s/ ( ^Tag \s+ \{ [^\}]* \n \s+ Name \s+ \") (.*?) (\" [^\}]* \} ) /join '', $1, despace($2), $3 /emsgx; print; sub despace { my $x = shift; $x =~ s/ //g; return $x; }
|
|---|