Help for this page
if (length != 3 || !/^(\d*)\s*/){ die "invalid data"; } else { print "your number without spaces is '$1'\n"; }