### First I read from database. $data_path = "data/mixed.data"; open(DAT, $data_path) || die("Could not open file!"); @rawdata=; close(DAT); chomp @rawdata; ## <<-- add this line here