Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: quotes substitution

by citromatik (Curate)
on Jun 29, 2009 at 06:23 UTC ( [id://775563] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    my $line="” 3”";
    decode_entities ($line);
    
  2. or download this
    $line="” 3 ”";
    $line =~ s/(?:&|&amp\;)rdquo;/'/g;
    print "$line\n";
    
  3. or download this
    ' 3 '