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


in reply to Re^2: Removing blank/empty lines
in thread Removing blank/empty lines

Syntax error it says. There's a close bracket before your print it says.

Look at the code. Is that the close bracket on your loop list? Did you put the new print inside the curly {}'s of your loop?