develooper Front page | perl.perl5.porters | Postings from March 2012

[perl #36359] 1x1e12 eq ''

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
March 27, 2012 19:08
Subject:
[perl #36359] 1x1e12 eq ''
Message ID:
rt-3.6.HEAD-4610-1332900531-1464.36359-15-0@perl.org
Reviewing this older ticket tonight, I'm inclined to agree with
Schwern's comment:

On Wed Jun 22 14:05:10 2005, schwern wrote:
> > 
> > perl580 -le "print 1x1e8 ne '' ? 'ok' : 'not ok'"
> > ok
> > 
> > perl580 -le "print 1x1e9 ne '' ? 'ok' : 'not ok'"
> > (crash)
> 
> I believe the issue is you're trying to allocate a string of 1 billion 
> characters, consuming about a gig of memory, and simply running out. 
> This falls under the "don't do that" category.
> 

If this viewpoint is correct, I think we should close this ticket.

Better thoughts?

Thank you very much.
Jim Keenan

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=36359

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