So, you have output from a variant caller or database. Have you had to parse data from the bot previously, or is this a one-off file? Some ideas:
1) Check the API documentation to see if it gives any hints.
2) Check if the output file was made on a Mac. You can try setting
$/ = "\12"; at the beginning of the script to test (it changes the delimiter from \n to \r).