in reply to Detecting Last line of a file
print shift @content; for(@content){print ", $_";} [download]