Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^8: Out of memory error!!!

by sathya83aa (Acolyte)
on Mar 28, 2013 at 15:26 UTC ( #1025980=note: print w/replies, xml ) Need Help??


in reply to Re^7: Out of memory error!!!
in thread Out of memory error!!!

Hi

I tried to run the program and printed the line and got the ouput as below. Its working fine till getting values from C1 line and then when it comes to C2 it is throwing error. I'm assigning some array using substr command in my script.

$a=0;

$b=0;

i.e

$Var20$a$b = trim(substr($line2,11,15));

$a++;

$b++;

something like that..

Output:

A0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx

A1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXX

A2

A3

A4

A5

A6

A7

A8

A9

AA

C1

C2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Out of memory!

I couldnot get what u meant by LF().

There are some variable assignment in the beginning of the script as well. The file size which Im processing is 5kb only :-(

Thanks & Regards,

Sathya V.

Replies are listed 'Best First'.
Re^9: Out of memory error!!!
by marto (Bishop) on Mar 28, 2013 at 15:30 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025980]
help
Chatterbox?
[1nickt]: marioroy Yes, I am using it with MCE, as is Discipulus I believe. I was trying to work out how to make a cpanfile that would be smart enough to know which deps to require.
[1nickt]: See this code. (I expected to simply eval loading threads as a check, but weirdness happened with Perlbrew so it's a grep of -V ...)
[choroba]: Config might be better than grepping -V
[Corion]: Also see Config::V, which is less of that hackery, or that hackery hidden in a module ;)
[1nickt]: The problem was with Perlbrew

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2017-10-18 15:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (249 votes). Check out past polls.

    Notices?