Danny <> wrote:
> I notice a lot of scripts that have a 1; at the bottom.
It is not needed in programs, it is needed in libraries.
Is that where you saw them?
> I am new to perl and trying to understand.
perldoc -f require
... The file must return true as the last statement
to indicate successful execution of any initialization
code, so it's customary to end such a file with "1;" unless
you're sure it'll return true otherwise. But it's better just
to put the "1;", in case you add more statements.
> Usually at bottom of scripts that do something but do not print to a web
> page or print this 1;
^^^^^^^^^^^^
Oh. You must be talking about something else then...
.... can't tell what else unless you show us the code you are asking about.
--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas