Re: return 1

2006-12-08 Thread JupiterHost.Net
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

Re: return 1

2006-12-08 Thread Derek B. Smith
--- 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? > > D

Re: return 1

2006-12-08 Thread Jay Savage
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 possi

Re: return 1

2006-12-08 Thread Jeff Pang
> >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 othe

return 1

2006-12-08 Thread Derek B. Smith
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); local ($whichmethod