Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
j_baker
· 14y ago · 0 comments
Just out of curiosity, what is the last line for?
1;
Comments
[–]
gwillen
14y ago
Causes the file to evaluate to 'true' when loaded as a Perl library, which is good form to indicate no error.
[–]
tastive
14y ago
Perl modules must return a true value (>0). 1; at the end is the easiest way, but if the last statement in the module
always
evaluates to true, you're similarly okay.
Yeah, it's weird. :/