http://www.perlmonks.org?node_id=86072


in reply to Re: Re (tilly) 2: Golf challange: match U.S. State names
in thread Golf challange: match U.S. State names

Not so, the regex returns matches in pairs, ie:
@list = 'foobarbazo' =~ /../g; # sets @list to ('fo','ob','ar','ba',' +zo')
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print

Replies are listed 'Best First'.
Re: Re: Re: Re (tilly) 2: Golf challange: match U.S. State names
by cforde (Monk) on Jun 06, 2001 at 19:21 UTC
    Aaahhhh, I see. That's what I get for not testing it first.

    Have fun,
    Carl Forde