in reply to splitting headache
use Text::ParseWords; my $line = "'Pugh.Pugh'.Barney.McGrew.Cuthbert.Dibble.Grub"; my @words = quotewords('\.', 0, $line); [download]