Help for this page

Select Code to Download


  1. or download this
    use constant APOSTROPHE =>  "\xE2\x80\x99" ;
    my $string =~ s/APOSTROPHE/'/ ;
    
  2. or download this
    use constant APOSTROPHE =>  "\xE2\x80\x99" ;
    my $string = "wjzw’xl cowuxze.";
    $string =~ s/APOSTROPHE/'/ ;
    
  3. or download this
    my $pos = index $string, APOSTROPHE;
    substr($string, $pos, length APOSTROPHE) = q{'};
    
  4. or download this
    #!/usr/bin/env perl
    
    ...
    
        return $asciis;
    }
    
  5. or download this
    *** BEFORE ***
    $string1[abc’def’ghi’jkl]
    ...
    *** AFTER ***
    $string1[abc'def'ghi'jkl]
    $string2[mno'pqr'stu'vwx]