Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Possible useless use of map

by Anonymous Monk
on Mar 18, 2010 at 12:00 UTC ( [id://829393]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-20 12:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found