use warnings; while(1) { # line 5 print "."; last; } __END__ Outputs: syntax error at try.pl line 5, near ") {" syntax error at try.pl line 8, near "}" Execution of try.pl aborted due to compilation errors.