Reputation: 379
I know that perl scripts (.pl) need the "1;" at the end of them for use, etc....
But if you have a cgi script (.cgi) which uses Perl, does the "1;" need to be at the bottom of it as well? I know this is a very basic question, but just wanted to be sure.
Upvotes: 0
Views: 72
Reputation: 386396
Modules (files executed using require
or use
) and scripts executed using do
require a true value. Scripts executed by perl
itself (e.g. CGI scripts) do not (though there's no harm in doing so).
Upvotes: 2