in reply to Detecting Last line of a file

Or perhaps (after chomping if necessary)
print shift @content; for(@content){print ", $_";}

chas