On Thu, 10 Jul 2003, Ton Hospel wrote:
> In article <Pine.LNX.4.56.0307102213150.18160@xxxxxxxxxxxxxxxxxxx>,
> Shlomi Fish <shlomif@xxxxxxxxxxxxxxxxxxxxxxxx> 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 shlomif@xxxxxxxxxxxxxxxxxxx
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
|