This doesn't work. No idea why:
#! /usr/bin/env perl use strict; use warnings; my $string = "cant"; $string =~ tr//"'"/; print $string . "\n";
Result: "'"can"'"t"'"
Desired result: "can't"
I reread the documentation for tr///. But it still seems like every character on left should be replace with a single corresponding character on the right. What am I missing?
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
In reply to tr/// not working for replacment of curly quotes by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |