I got an answer to my question here: http://stackoverflow.com/questions/699253/how-to-find-out-if-file-is-tab-or-space-delimited-in-perl/699256#699256
but it would really help me if someone could break down the regex and explain what is going on and why it wont work on the last line of the file.
~/^(\d+\s+)+?$/
I thought the above had '+' in theback so if i add '*' it will work because * means zero or more...but that did not work