http://www.perlmonks.org?node_id=1041264


in reply to Print large text into output file

Statement print OUT <<HEADS isn't terminated with a semicolon.

Update: Use CSS :nth-child instead of that ghastly Javascript.