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)
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
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
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)