Hi,
i have a need to change matches from a regex, to be changed on the fly, in the replace section.
based on a suggestion from the chatterbox, I
tried
something like :
$mystring="CONTENT-
TYPE";
$mystring=~s/(.*)/{my $foo= $1; s\/\\n\/ \/; "$1"}/e;
This lead to error message:
Use of uninitialized value in string at ./test3.pl line 5.
for my realuse, the $mystring is an entire file slurped in after changing the \n delimiter,
and there may be multiple places that I get matches in the string. I need to remove the \n only for some of the matches.
thanks for your help!