in reply to Regex Pattern Problem

unless ($num =~ /^\d{5,}/ && $num !~/\w/)
should do you.