in reply to Difference between tr/// and s///?
$toto will now equal 'this+is+yo+text'. Where:$toto = 'this+is+my+text'; $toto =~ tr/my/your/d;
$toto will now equal 'this+is+your+text'. A helpful distinction that is not blatantly obvious in the reading of Perl docs.$toto = 'this+is+my+text'; $toto =~ s/my/your/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Difference between tr// and s///?
by CountZero (Bishop) on Feb 06, 2004 at 17:10 UTC |