laziness, impatience, and hubris | |
PerlMonks |
Re: Replace all . with _ in a stringby DigitalKitty (Parson) |
on Dec 23, 2003 at 19:22 UTC ( [id://316690]=note: print w/replies, xml ) | Need Help?? |
Hi.
I had to 'backslash' the period to prevent it from matching any character in the string. The 'g' on the end of the substitution means 'throughout the whole string as opposed to only the first period'. Hope this helps, -Katie.
In Section
Seekers of Perl Wisdom
|
|