Re: ton's solutions

[email protected] (Shlomi Fish)
Newsgroups perl.golf
Message-ID <[email protected]>
On Thu, 10 Jul 2003, Ton Hospel wrote:

> In article <[email protected]>,
> 	Shlomi Fish <[email protected]> writes:
> > It seems to me that both ton's solution and his alternative solution are
> > incorrect:
> > What gives?
> >
> probably means it's wrong, though i thought what I did was actually portable.
> What is your perl version ?

5.8.0

> What is your CPU type ?

Intel Pentium III 600 MHz.

> What do these print for you:
>
> perl -wle 'print 1<<64'

1

> perl -wle 'print+(0..3)[2**32]'

3

> perl -wle 'print+(0..3)[2**31]'
>

[Nothing] (newline or so)

Regards,

	Shlomi Fish


----------------------------------------------------------------------
Shlomi Fish        [email protected]
Home Page:         http://t2.technion.ac.il/~shlomif/

An apple a day will keep a doctor away. Two apples a day will keep two
doctors away.

	Falk Fish
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.