in reply to Re: Re: BEGIN initialization and memory
in thread BEGIN initialization and memory

Thanks for the info and link, BrowserUK. I believe I missed that late post to that thread. It sounds like one shouldn't (yet) rely fully on Perl freeing your unused blocks, which is why questions about freeing memory are generally answered along the lines of "don't worry about it, just write efficient algorithms, the GC will do what it can, etc.." Anyway, I probably shouldn't have said Perl never reclaims used memory, since it's quite clear Elian knows better what he's talking about than I!

FYI, Perl frees the blocks in your sample code on my Linux system.

blokhead

  • Comment on Re: Re: Re: BEGIN initialization and memory

Replies are listed 'Best First'.
Re: Re: Re: Re: BEGIN initialization and memory
by BrowserUk (Patriarch) on Jul 23, 2003 at 12:23 UTC

    It's fairly clear that Elian knows better than most of us. Shame we can't (yet?) do brain transfusions, we could all benefit:)

    Thanks for conforming that the demo works on Linux, I thought it should, but didn't have any way to confirm it.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller