in reply to banna split it aint
will do what you want, as long as you are certain you always want it split into individual digits. To be more interesting,@items = ( $num =~ /\d/g );
will split the number into as many groups of $n digits as it can and the last element of the array will be any remaining digits (ie, length($num) % n ). Mik@items = ( $num =~ /\d{1,$n}/g );
|
|---|