in reply to Re^3: Substitution for braces
in thread Substitution for braces
These changes doesnot reflect on the file. The replace is not done for the files. Please tell me what is the solutionwhile(my $line=<DATA>){ if($line =~ /<cc>([\s\S]+?)<\/cc>/){ #print $name_pre; my $name=$1; my $name_pre = $1; $name=~ s/&amp;/&/g; $name=~ s/&/-/g; $name =~ s/-$//; $name_pre=~ s/\Q$name_pre\E/\Q$name\E/g; $name_pre =~ s/\\//g; } } __DATA__ fg-&amp;&+(and(we- <id>6VE4AGAfg-&amp;&+(and(we-</id><cc>fg-&amp;sonia&-n +d_&amp;lio_(we-</cc>
|
|---|