Derek B. Smith wrote:
Why is return 1 coded at the end of many programs. For
example:

I know it means true but what does this do and why?
thank you
derek


#!/usr/bin/perl
#use strict;
my $user_name = qq(dsmithxx);
my $user_password = qq(xxxx);
my $sql_server = qq(xxxxx);
my ($dbh,$drh,$stmt);
local ($whichmethod,$forminfo,%FORM_DATA);
use DBI;

In this case its because its not a script but a library that is require()ed in.

its pretty much the old way to do it, you should either have scripts that are executed or .pm Modules that are use()ed or require()ed

perldoc perlmod

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to