I tried to print the matched string at the postion of data,how can i do it?
$at ="at";
@ar = <DATA>;
@xxv = map(m/$at/g, @ar);
print "@ar";
print @xxv;
print "\n";
__DATA__
atgacaagcagacccaggggatacgat
I expected output is
atgacaagcagacccaggggatacgat
at at at
'; $ar =~ s/at(*SKIP)(*F)|./ /g; print $ar;` Not correctly fit with the data. How can i do it? – Jan 27 '15 at 10:59