in reply to Re^2: Perl Program - Out of memory?
in thread Perl Program - Out of memory?

Wild guess here; but could your sleep($delay); function cause any buffering?

Like I said, a wild guess. Glancing at it here. That was all that jumped out at me

HTH

--Chris

#!/usr/bin/perl -Tw
use Perl::Always or die;
my $perl_version = (5.12.5);
print $perl_version;

Replies are listed 'Best First'.
Re^4: Perl Program - Out of memory?
by jdlev (Scribe) on Nov 15, 2013 at 20:58 UTC
    Tried setting the delay to 0 and no dice. It just get's to the "Out of Memory!" error much faster (which will help in tracking down the issue). Is there a way to track down memory leaks in perl?
    I love it when a program comes together - jdhannibal
      Is there a way to track down memory leaks in perl?

      Your code isn't leaking memory. It is just using more than it has available.

      At least, that is what I strongly suspect, but given that you've stopped answering questions, there's no way to derive a definitive conclusion.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
      Hmm... "Out of memory faster". Why not try the other direction; bump up the sleep time, a bit, and see what that does.

      --Chris

      #!/usr/bin/perl -Tw
      use Perl::Always or die;
      my $perl_version = (5.12.5);
      print $perl_version;