>>>>> "SB" == Steve Bertrand <st...@ibctech.ca> writes:
SB> My last question, rephrased to be direct-to-the-point: SB> Multi-part howto, or STFU if it's not possible request: no, i won't stfu. first off this isn't close to a beginner's question. complex stuff like perl guts, memory leaks and reloadable ram images are not appropriate for this list in general. there are other places where they can be asked. but i will answer it anyway. SB> - create a scalar to contain the memory address of a reference to a SB> complex data structure perl (at the perl level) has no access to real memory addresses. this is a good thing so don't try to abuse it or work around it. SB> - store ONLY the memory address using 'Storable' (or some other SB> mechanism) store where? why? SB> - create a cyclical reference within the data structure easy to do with references and no need for internal memory addresses. SB> - let everything referring to the data structure go out of scope ditto. SB> - exploit the fact that Perl GC can't delete this memory allocation SB> (that is, without 'weaken') exploit why?? SB> - re-create the reference to the data structure into a scalar, by SB> lifting the memory address from disk using 'Storable' (or some other SB> mechanism) huh?? that is the really garbled part. none of that makes any sense. what is 're-create'?? when you load anything into ram you never (in almost any lang or system) have control over the address it gets loaded into. the rule is well known, you don't ever write real address data to disk as that is useless upon reloading. now, as randal also asked, why do you want this? you are just learning perl and i am sure this is way above your head in many dimensions. and i am positive this is an XY problem where you want X and think Y is the solution when there is usually a much better way to do X. what is your real GOAL here and i don't mean any technical stuff. why do you want this crazy thing? uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/