in reply to Memory Managment with Subroutines and Objects
Maybe you want to learn about how Perl manages memory? You don't need to manage memory yourself (as you would have seen by monitoring the memory usage of your program as it downloads some files).
Also, if you want to call a method on an object, it helps to read the documentation as to what methods are supported. Neither ->delete nor ->die nor ->gibberish are documented there to work, so what makes you think they should work?
As programs do not share memory in a way that both can modify it and see the modifications unless you make very specific preparations, you cannot pass Perl objects between programs (or "scripts" as you call them). Not even in Java can you do that, or at least, it would be just as clumsy as in Perl, by storing all payload data in a file on disk and then restoring the object from that payload data. I'm not sure what you intend to gain from such an approach.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Memory Managment with Subroutines and Objects
by Anonymous Monk on Dec 28, 2010 at 23:28 UTC | |
by Corion (Patriarch) on Dec 28, 2010 at 23:38 UTC | |
by Anonymous Monk on Dec 29, 2010 at 02:39 UTC | |
by Corion (Patriarch) on Dec 29, 2010 at 08:14 UTC |