in reply to Re: how to split input data ?
in thread how to split input data ?

does the look-behind count as mucking around? ;) (as opposed to having to shift off the first blank element)
perl -le 'print join ":", split /(?<=\d\d)(\d\d)/, "123456789"'
oh, i guess that doesn't work for '123' ... back to a little more mucking:
perl -le 'print join ":", grep {length} split /(\d\d)/, "123456789"'

Replies are listed 'Best First'.
Re^3: how to split input data ?
by GrandFather (Saint) on Nov 09, 2006 at 02:15 UTC