$ perl -e '$foo = "/some/path/to/a/file"; $foo =~ tr|/|x|c; print "$fo +o\n";' /xxxx/xxxx/xx/x/xxxx
In reply to Re: Selectively replacing characters inside a string
by dsheroh
in thread Selectively replacing characters inside a string
by markkawika
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |