package Test1; use namespace::clean; sub foo { if } # Yes, this is an intentional syntax error 1; #### % perl -Ilib -MTest1 -e1 #### syntax error at lib/Test1.pm line 2, near "if }" Compilation failed in require. BEGIN failed--compilation aborted. #### Unknown error Compilation failed in require. BEGIN failed--compilation aborted.