On Fri, Nov 19, 2004 at 10:20:23PM +0000, Nicholas Clark wrote: : In perl 6 will these always return a match object? Or will it be as perl 5 : and return the number of substitutions (or the empty string if none)
Yes, and yes. The match object returns the number of substitutions in a numeric context. If there is no match, it returns 0 in a numeric context or undef in a string context. Larry