Past-pm printing the return value of the main routine

2006-12-12 Thread Allison Randal
In Punie or Perl 6, when I execute a simple statement: print 2; It prints 21. This is because a) the return value of a successful print is 1, b) the main routine is returning the value of the last statement (note this is correct for Perl, but isn't correct for all languages), and c)

Re: Past-pm printing the return value of the main routine

2006-12-12 Thread Patrick R. Michaud
On Tue, Dec 12, 2006 at 09:47:16AM -0800, Allison Randal wrote: In Punie or Perl 6, when I execute a simple statement: print 2; It prints 21. This is because a) the return value of a successful print is 1, b) the main routine is returning the value of the last statement (note this is

Re: Past-pm printing the return value of the main routine

2006-12-12 Thread Allison Randal
Patrick R. Michaud wrote: What revision number are you working with? I think this was fixed in a later revision of HLLCompiler. Aye, this was yesterday. Working now. Allison

Past-pm printing the return value of the main routine

2006-12-12 Thread Allison Randal
In Punie or Perl 6, when I execute a simple statement: print 2; It prints 21. This is because a) the return value of a successful print is 1, b) the main routine is returning the value of the last statement (note this is correct for Perl, but isn't correct for all languages), and c)