in reply to split number into seperate numbers and store in an array or seperate variables
You can skip several of those steps:
my @n = split /\.|/, '00.55.55.00';; print for @n;; 0 0 5 5 5 5 0 0 [download]