in reply to Selectively replacing characters inside a string
$ perl -e '$foo = "/some/path/to/a/file"; $foo =~ tr|/|x|c; print "$fo +o\n";' /xxxx/xxxx/xx/x/xxxx
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Selectively replacing characters inside a string
by markkawika (Monk) on Jun 11, 2009 at 16:42 UTC |