in reply to Memory Usage with __DATA__

Well, first of all, the script itself doesn't occupy memory per se ... it's a file that the perl binary holds open. So closing the filehandle can't free what isn't allocated.

On the other hand, closing DATA does free the memory buffer that is associated with the filehandle (just like any filehandle). Can't hurt...

    -- Chip Salzenberg, Free-Floating Agent of Chaos