I have to substitute ” or ” with single quotes. Now the output I get from the above code is ” ' 3&'” Where the expected output should be ‘3’.#!/usr/bin/perl $line="” 3”"; $line =~ s/[&|&\;]rdquo;/'/g; print $line;
In reply to quotes substitution by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |