barneyblackburn
Programmer
I have some perl code that does a find and replace in an HTML document to strip out the HTML of it. It works really well except when it tries to insert a £ symobl. The code I have is:
my ($pound) = $_;
$pound =~ s/£/£/g;
$_ = $pound;
What is does is replace £ with £. How do I get it to just insert £.
Ive tried running a further find and replace to find Â, but to no luck, as £ seems to be a symbol by itself, so can seperate it out!
Thanks so much!
my ($pound) = $_;
$pound =~ s/£/£/g;
$_ = $pound;
What is does is replace £ with £. How do I get it to just insert £.
Ive tried running a further find and replace to find Â, but to no luck, as £ seems to be a symbol by itself, so can seperate it out!
Thanks so much!