in reply to Matches but not substituting
should be:$Text =~ s/$Find$/$Link/g;
If LOC100282561 is not at the end of the $Text string, then the $ anchor prevents the substitution.$Text =~ s/$Find/$Link/;
Update: with your updated code and my proposed fix, here is the output I get:
Is that what you expect?<a href="http://www.ncbi.nlm.nih.gov/sites/entrez?db=gene&term=LOC1002 +82561" target="_blank">LOC100282561</a> [Source:RefSeq peptide;Acc:N +P_001148941]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Matches but not substituting
by seaver (Pilgrim) on Jun 03, 2011 at 15:14 UTC | |
by GrandFather (Saint) on Jun 04, 2011 at 00:26 UTC | |
|
Re^2: Matches but not substituting
by Anonymous Monk on Jun 03, 2011 at 14:55 UTC | |
by toolic (Bishop) on Jun 03, 2011 at 15:10 UTC |