in reply to Pattern with split

Well, this is speccing by example ... not-enough-information error :)

But judging from the info you give us I would tend towards a capturing regex and not use split. Something like

my ($type,$id,$no,$date1,$text,$date2)=/()()()()()()/;
where the inside and outside of the parentheses are filled appropriately.

-- Hofmator