in reply to Re: Formatting quotes in a String
in thread Formatting quotes in a String
Hi choroba,
The second one is what i am expecting only add when needed and this is working fine for my requirement.can you please get me through how this is working. I have checked on this logic So, tr usually returns the number of characters returned or removed. I tried checking this
$string = 'Tetsing " code implementationm'; $string = tr/"/ /; print $string;
output is coming as 0
Even i tried this
$string =~ tr/"//; print $string;
The output is the same input string
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Formatting quotes in a String
by Laurent_R (Canon) on Dec 01, 2016 at 10:13 UTC | |
by pavan474 (Novice) on Dec 02, 2016 at 12:07 UTC | |
|
Re^3: Formatting quotes in a String
by perldigious (Priest) on Dec 01, 2016 at 14:18 UTC |