1 ## name no code, no need for a one
10 #-----------------------------------------------------------------------------
17 #-----------------------------------------------------------------------------
19 ## name pass with __END__
25 #-----------------------------------------------------------------------------
27 ## name pass with __DATA__
33 #-----------------------------------------------------------------------------
35 ## name pass with comments at the end
41 #-----------------------------------------------------------------------------
43 ## name pass with comment on the same line
48 #-----------------------------------------------------------------------------
50 ## name pass with extra space
53 1 ; #With extra space.
55 #-----------------------------------------------------------------------------
57 ## name pass with more spacing
60 1 ; #With extra space.
62 #-----------------------------------------------------------------------------
64 ## name pass with 1 on last line, but not last statement
67 $foo = 2; 1; #On same line..
69 #-----------------------------------------------------------------------------
76 #-----------------------------------------------------------------------------
78 ## name fail with closing sub
84 #-----------------------------------------------------------------------------
86 ## name fail with END block
92 #-----------------------------------------------------------------------------
94 ## name fail with a non-zero true value
99 #-----------------------------------------------------------------------------
101 ## name DESTROY sub hides the 1;
102 ## TODO This is a PPI bug. See http://rt.cpan.org/Ticket/Display.html?id=27364
106 DESTROY { warn 'DEAD'; }