Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Out Of Memory

by Utilitarian (Vicar)
on Sep 18, 2013 at 10:28 UTC ( #1054632=note: print w/replies, xml ) Need Help??

in reply to Out Of Memory

I suspect you may be able to solve your issue by processing the individual records rather than slurping the entire input file at once, but without code and sample input we can't really provide you with more than generalisations.

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Replies are listed 'Best First'.
Re^2: Out Of Memory
by Laurent_R (Abbot) on Sep 18, 2013 at 11:22 UTC

    I definitely agree with this. Most of the files I am working with would give me the "out of memory" message if I tried to slurp then entirely into memory. They are just way too large. Processing one line at a time is quite often the solution. But I can't say more without seeing the program and a data sample.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1054632]
[Lady_Aleena]: Maybe...
[talexb]: Sounds like a Try It And See question to me ..
[1nickt]: heh, I hab\ve been. Trying to understand it.
[1nickt]: perl -e 'print 1.0' ... output '1'.
[Lady_Aleena]: You could quote it. <c>perl -e 'print "1.0"'>/c> returns 1.0

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2017-05-24 18:43 GMT
Find Nodes?
    Voting Booth?