>>>>> "SB" == Samuel Baldwin <[email protected]> writes:

  SB> A bit of a side question; when would you ever want to try and match an
  SB> empty regex? Wouldn't it be semantically saner to use defined?

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.

and defined has nothing to do with m//. m// matches a null string or
anywhere between chars. it would work on an undefined value but trigger
the usual warning.

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