user1801932
user1801932

Reputation: 379

Adding "1;" to the bottom of a cgi script that uses Perl?

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

Answers (1)

ikegami
ikegami

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

Related Questions