Illegal declaration of anonymous subroutine at ...