my $ret_data = { 'status' => -1, # file was too big and I truncated it 'message' => "here is the file $filename you asked but it is truncated" 'message-html' => "success blah blah for $fileame but truncated", 'data' => truncate($data) };