in reply to Re: Possible useless use of map
in thread Possible useless use of map

"Modern Perl versions don't have the older memory penalty of a anon array that cannot be deleted."

Has there ever been an array involved? I think it's always been a list of values on the stack.

Replies are listed 'Best First'.
Re^3: Possible useless use of map
by Anonymous Monk on Mar 18, 2010 at 14:04 UTC
    I think it's always been a list of values on the stack.

    I think they (c/c++ programmers) call that an array :)

      Nope. C doesn't return arrays on the stack and neither does Perl.

      I recommend: "Advanced Perl Programming" by Srinivsan as a good reference for those interested about Perl internals.

        Who said return? Besides, the memory penalty wasnt a memory leak, just memory that was allocated needlessly, then released.