>>>>> "KK" == Karl Kaufman <krk...@comcast.net> writes:

  KK> Well, to be precise, your conceptual logic was fine; the
  KK> implementation was flawed. As several have pointed out, you
  KK> weren't replacing the comma with a _space_ *character*, but with
  KK> the RegExp _whitespace_ *character class*.

to be really precise, there was no character class in that code.
he was replacing the comma with the letter s. the right side of s///
is normally just a double quoted string and \s becomes just an s. this
shows it:

perl -le '$x = "a,b" ; $x =~ s/,/\s/; print $x'
asb



-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to