in reply to Re: Re: Re: Not quite a simple split
in thread Not quite a simple split

Your code counts 8"foo"8 as one token, but I think the token is supposed to terminate after the 2nd quote, leaving the second 8 as a separate token.
m/([^\s"]+|[^\s"]*(?:"[^"]*"))/g

The PerlMonk tr/// Advocate