Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: keep running out of memory, help a newbie!

by LanX (Saint)
on Feb 14, 2017 at 00:29 UTC ( [id://1181942]=note: print w/replies, xml ) Need Help??


in reply to keep running out of memory, help a newbie!

Hi kixsnap, welcome to the monastery!

> not sure what i'm doing wrong

It's pretty unreadable because of erratic indentation.

Could you fix that, please?

Probably your endless loop is causing problems.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

  • Comment on Re: keep running out of memory, help a newbie!

Replies are listed 'Best First'.
Re^2: keep running out of memory, help a newbie!
by kixsnap (Novice) on Feb 14, 2017 at 01:20 UTC
    not sure how else to do the loop, wouldnt a for(;;) be the same thing and end up the same way? or am i missing something?
      ... use constant LEVEL_1_LOOP_MAXIMUM => 1400; # This code keeps the +program from looping forever. my $level_1_loop_counter; FOLLOW_LEVEL_1_LINK: for ( $level_1_loop_counter = 1 ; $level_1_loop_counter <= LEVEL_1_LOOP_MAXIMUM ; $level_1_loop_counter++ ) { #------------------------------------------ print $fh_log "Level_1_loop_counter: $level_1_loop_counter\n"; if ( $level_1_loop_counter > LEVEL_1_LOOP_MAXIMUM ) { die "Runaway program.\n"; } ...

      Notice the belt and suspenders approach.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found