in reply to Difficulty using $/ as delimiter
Uh, the entries you've read still have newlines in them. Just split them like
@lines_of_this_entry = split /^/; [download]