Like I said, first time post, but thanks for the link read. I've been using Perl for all of 2 weeks, so sorry if I seem like a dummy. The problem was that I wasn't including the first if statement with tableSize2One and like you said had an orphan elseif. I figured I could just put the foreach inbetween, but I was wrong. That and the && needing to be switched to || my bad that was just a silly mistake. Thanks for your help I got it solved quickly with it. :D
-T