http://qs321.pair.com?node_id=179709


in reply to Re: splitting a number into several numbers
in thread splitting a number into several numbers

That's awesome Blake, like your solution :)
But what "grep length" does in here? 

the following:
my @vars = split /(..?)/, $str ;

return:
 12 34 56 
^ there is one space here, why?

and grep length get rid of the space, how that magic works?


-perlkid