#!/usr/bin/perl -w use strict; my $str = "I like to eat pizza. Every friday, I do."; $str =~ s/\./_/g; print $str; Output: C:\>perl pg61.pl I like to eat pizza_ Every friday, I do_
In reply to Re: Replace all . with _ in a string
by DigitalKitty
in thread Replace all . with _ in a string
by cshields36
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |