Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use CGI::Carp qw(fatalsToBrowser); use CGI qw(-oldstyle_urls :standard); print header(); my $name = 'Joe Doe'; print "Name 1 = $name<br>"; #print "Joe Doe" $name=~s/\s/_/; print "Name2 = $name<br>"; #print "Joe_Doe" $name =~s/_/\s+/; print "Name 3 = $name<br>"; #print "Joes+Doe"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regular Expression Help
by jwkrahn (Abbot) on Aug 23, 2006 at 17:52 UTC | |
by duckyd (Hermit) on Aug 23, 2006 at 18:14 UTC | |
|
Re: Regular Expression Help
by Fletch (Bishop) on Aug 23, 2006 at 17:50 UTC | |
|
Re: Regular Expression Help
by graff (Chancellor) on Aug 24, 2006 at 02:41 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |