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


in reply to m{} within grep{} causing problems? (code)

Your problem is that the grep form that you're using, grep BLOCK LIST, does not use a comma (',') after the BLOCK. Take out the comma and it will compile.