in reply to Count of split data
Try setting the record separator $/ to ";" or adding the number of records in @arr to $ct.