2. I tried the code from almut. It works but it will not distinguish between c1 and c11. In other words when C11 is found d1 is added within the 11. The final result is "c1 d11"My solution also does not distinguish between c1 and c11. You can add \b anchors, as GrandFather has (see perlre):
s/\b$k\b/$data{$k}/g;
In reply to Re^3: Get data from a file to search and replace within a second file
by toolic
in thread Get data from a file to search and replace within a second file
by biscardi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |