why not $toto =~s/\+/ /g; ? this was my assumption. I know both works but get lost on wich to choose. thanks for explanations.$toto = 'this+is+my+text'; $toto =~tr/+/ /;
20040206 Edit by BazB: Changed title for all of thread, added code tags
In reply to Difference between tr/// and s///? by kalamiti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |