Re: Numeric literals, take 1

[email protected] (Frank Wojcik) Fri, 15 Nov 2002 22:11:58 -0500
Newsgroups perl.perl6.documentation
Message-ID <[email protected]>
On Thu, Nov 14, 2002 at 07:58:55PM +0100, Angel Faus wrote:
> The C<1i> and C<-1i> numbers can be also written
> respectively, C<i> and C<-i>, so the previous example
> could be rewritten:
> 
>  my $z = 2.3 + i;

OK. So, what does this print?

sub i {return 40}

my $z = 2.3 + i;
print "z:$z\n";