Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Could we save the memory occupied by "undef" in an array?

by JavaFan (Canon)
on Nov 23, 2008 at 12:19 UTC ( [id://725414]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Could we save the memory occupied by "undef" in an array?
in thread Could we save the memory occupied by "undef" in an array?

So,what if I can only use array to implement, and Is there a method or package that can squash the memory occupied by "undef" in an array and return the the positions back when I try to fill something into the position that was occupied by a undef, sort of like autovivification?
Why won't a hash do if you don't want to spend the memory? Why do you think someone will have written a module that basically does what a hash does?
  • Comment on Re^3: Could we save the memory occupied by "undef" in an array?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-16 18:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found