See. the perlop manpage for more info.$_ = 'foo.bar(baz.quux)'; print "was: $_\n"; tr[.][_]; print "now: $_\n"; __output__ was: foo.bar(baz.quux) now: foo_bar(baz_quux)
_________
broquaint
In reply to Re: Replace all . with _ in a string
by broquaint
in thread Replace all . with _ in a string
by cshields36
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |