>>>>> "JA" == John Abreau <[email protected]> writes:

  JA> On Fri, May 22, 2009 at 11:22 AM, Uri Guttman <[email protected]> 
wrote:
  >> i did mention a common use in split( //, ... ). that explodes a string
  >> into an array of all the chars which is useful sometimes. and that is
  >> always an null regex afaik. it has the same effect as m/(.)/s in a list
  >> context.

  JA> Of course, splitting on a null string has the same effect.

yes, but you don't get why. the first arg to split is ALWAYS a regex,
regardless of the delimiters used. the one exception is the special case
(documented) of ' ' which is not the same as / /. so splitting on '' is
the same as // because the string (or any expression) is converted to a
regex by split.

uri

-- 
Uri Guttman  ------  [email protected]  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
--------- Free Perl Training --- http://perlhunter.com/college.html ---------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to