Re: 0; and 1;

2005-07-16 Thread Wiggins d'Anconia
"Because it's up-side down. Why is that? It makes replies harder to read. Why not? Please don't top-post." - Sherm Pendley, Mac OS X list [EMAIL PROTECTED] wrote: > Hi , > > I have executed a Perl script from csh[c shell ] and saw that exit > is for shell from where it is invoked . > Exit 100;

RE: 0; and 1;

2005-07-14 Thread arjun.mallik
Arjun Deserve before you desire -Original Message- From: Beast [mailto:[EMAIL PROTECTED] Sent: Thursday, July 14, 2005 9:29 AM To: beginners perl Subject: 0; and 1; I coudn't find any reference (yet) the meaning of 0; or 1; in the end of perl program. It means exit or return v

Re: 0; and 1;

2005-07-14 Thread Adriano Ferreira
On 7/14/05, Beast <[EMAIL PROTECTED]> wrote: > > I coudn't find any reference (yet) the meaning of 0; or 1; in the end of > perl program. In the examples in "perldoc perlmod" you will find 1; # don't forget to return a true value from the file This is needed when you do a 'require' over a Per

Re: 0; and 1;

2005-07-13 Thread Chris Devers
On Thu, 14 Jul 2005, Beast wrote: > I coudn't find any reference (yet) the meaning of 0; or 1; in the end > of perl program. In the absense of an explicit return statement, a block of Perl code will return the value of the last statement to any calling code. For an ordinary script, this doesn'

0; and 1;

2005-07-13 Thread Beast
I coudn't find any reference (yet) the meaning of 0; or 1; in the end of perl program. It means exit or return value? when I explicitly type "return 0;" it gives error, but when I give "exit 100;" the value of $$ isn't 100 anyway. -- --beast -- To unsubscribe, e-mail: [EMAIL PROTECTED]