develooper Front page | perl.perl5.porters | Postings from July 2010

Re: [perl #76756] PATCH: srand returns the seed

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
July 28, 2010 09:34
Subject:
Re: [perl #76756] PATCH: srand returns the seed
Message ID:
20100728163428.GG48531@plum.flirble.org
On Wed, Jul 28, 2010 at 12:29:10PM -0400, Eric Brine wrote:
> On Wed, Jul 28, 2010 at 12:27 PM, Eric Brine <ikegami@adaelis.com> wrote:
> 
> > There's been a regression since that node was written. The following used
> > to be silent.
> >
> > $ perl -wle'print 0+"0x0"'
> > Argument "0x0" isn't numeric in addition (+) at -e line 1.
> > 0
> >
> >
> 
> More correctly, I'm guessing it used to be silent.

$ ~/Reference/5.005_03/bin/perl5.00503 -wle'print 0+"0x0"'
Argument "0x0" isn't numeric in add at -e line 1.
0

Not for the past 10 years. At least. I don't think it was ever supposed to
be silent.

Nicholas Clark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About