in reply to Matching dot using regexp

You need to escape the dot /\./ , split is using a regexp and the dot is a match-any metacharacter.

See perlre#The-Basics

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!