OK understood and thank you! It is working now.
quick question though...I read perldoc -f split and it made no mention of LIMIT in brackets in split /PATTERN/,EXPR,LIMIT
Is this a trick? I know that it is spliting by fields like awk '{print $3}' /etc/passwd, but can anymore provide more detail?
thank you