in reply to split...or better?

For extra Timtowtdiness
perl -le '$_="foo.bar.baz"; print /^(.*?)\./'

print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});