newperldeveloper has asked for the wisdom of the Perl Monks concerning the following question:
Bob_Smith becomes Bob\\_Smith.my $file="Bob_Smith"; $file =~ s/_/\\_/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extra backlash getting added to string
by Fletch (Bishop) on Jul 15, 2021 at 17:14 UTC | |
by newperldeveloper (Sexton) on Jul 15, 2021 at 18:00 UTC | |
|
Re: Extra backlash getting added to string
by AnomalousMonk (Archbishop) on Jul 15, 2021 at 17:13 UTC |