|
hi basil --
In a message dated 4/5/2006 3:25:34 P.M. Eastern Standard Time,
[EMAIL PROTECTED] writes:
> Another option if you want to cleanup the input and replace the "+"
with a blank,
> > $string = "G+Chdgf"; > print "string before =>$string<=="; > $sting = $string =~ s/\+/ /g; this should be:
$string =~ s/\+/ /g; except that $sting in the line above was, i presume, a
typo
(should have been $string), what would have been printed below would have been "string before =>G+Chdgf<== String after =>1<==" since there was one substitution actually made.
> print " String after =>$string<==\n"; > > string before =>G+Chdgf<== String after =>G Chdgf<== > > Basil however, i thought that what amit wanted to do was to be able to
match
using the original string, including the ``+'' and other such
(meta)character(s)
that might be present, not just to eliminate them.
bill walters
|
_______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
