in reply to Re^2: Splitting a string
in thread Splitting a string

The . is unnecessary.

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Replies are listed 'Best First'.
Re^4: Splitting a string
by nobull (Friar) on Feb 25, 2006 at 15:37 UTC
    It is true that /PATTERN/g will DWIM when /PATTERN/ matches the empty string and not find an infinite number of matches as the same point.

    I, however, consider code that relies on this behaviour in order save one character to be less simple.