ent.txt file contains all the entities. This substitutes all the & with &#!/usr/bin/perl open FH,'ent.txt'; @data=<FH>; $text='&bush&'; foreach $dat(@data){ $text =~ s/&/&/g; print $text; }
In reply to Re^4: character replace
by sandy1028
in thread character replace
by sandy1028
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |