Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Memory Management...

by welchavw (Pilgrim)
on Feb 03, 2004 at 17:04 UTC ( #326253=note: print w/ replies, xml ) Need Help??


in reply to Memory Management...

As long as your result is not rendered incorrect, you will find Perl will not hesitate to run your code. Whether code reviewers would tolerate is entirely another matter. Whether you are having the effect you intend is another.

Do you *know* that setting to undef is freeing those objects immediately (or even soon) (update: especially see bean's note below re: undef $x vs. $x = undef)? Or are you making assumptions about the garbage collector's behavior? Would you, at a C code review, accept inline assembly bit-fiddling tricks, or would you insist that the C operators be used to the same effect? Your answers to these questions should guide you, IMHO.

,welchavw


Comment on Re: Memory Management...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2015-08-03 06:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (25 votes), past polls