in reply to matching between 1 to 8 digits but not more

if ($Number =~ m/\d\d{8,}/) { print ("line has more than eight digits!\n"); }

This only really does what your message indicates, i.e. it doesn't test for zero digits.