Front page | perl.perl6.language |
Postings from October 2001
Re: NaN+NaNi
Thread Previous
|
Thread Next
From:
RaFaL Pocztarski
Date:
October 11, 2001 17:53
Subject:
Re: NaN+NaNi
Message ID:
3BC63DCA.21B9BDE6@rfl.pl
raptor wrote:
> | It's bothered me that I can write 100_000 in my perl code, but if I have
> | a string "100_000" it'll evaluate to 100 when numerified. It would be
> | really weird if "10indigo" became 10i, "1e3foobar" became 1000, and
> | "10_000" became 10 in Perl 6 IMHO.
>
> ]- Agree if u want this in strings then use :
> "$( 10i ) ndigo"
> "$( 1e3 ) foobar"
In your own code of course, it's easy now in Perl 5
$x=1e3.' foobar';
but the main problem is with external input, which could be "1_000" but
I don't think "$(1_000)" (and I hope that the $(...) in input won't be
evaluated anyway).
- RaFaL Pocztarski, admin@rfl.pl
Thread Previous
|
Thread Next