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();
my $sql_server = qq(x);
my ($dbh,$drh,$stmt);
--- Jay Savage <[EMAIL PROTECTED]> wrote:
> On 12/8/06, Derek B. Smith
> <[EMAIL PROTECTED]> 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?
>
> Derek,
>
> For historical reasons, the final statement o
On 12/8/06, Derek B. Smith <[EMAIL PROTECTED]> 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?
Derek,
For historical reasons, the final statement of any script that is
imported with use or require (and possibly do?) mu
>
>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?
This is because it's mostly 'require' d by other scripts then you may need to
add '1' at the end.
If this script is required by other scripts,but its last statement doesn't