Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: (3) Out Of Memory error at 950MB with 14GB free RAM

by ambrus (Abbot)
on Feb 10, 2004 at 14:01 UTC ( #327916=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Out Of Memory error at 950MB with 14GB free RAM
in thread Out Of Memory error at 950MB with 14GB free RAM

Try perl -wle 'print 0+[1]'; it will print a very big number, as it converts the pointer to an anonymous list ([1]) to an integer. Thus, $a[[1]]=1 creates a very large array, as it has to set the (0+[1])-th element of @a to 1.

Update: Abigail-II was somewhat faster to submit an answer, and his is actually cleaner than mine.


Comment on Re: (3) Out Of Memory error at 950MB with 14GB free RAM
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://327916]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2015-07-04 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls