in reply to Detecting Last line of a file
...
chomp @content; print join(', ', @content); [download]