in reply to Possibly silly perl memory allocation question, duplicating scalars
Targets stay allocated for as long as their code is around (in the theory that next time the op is used, space for its result needn't be allocated again); the only easy way to reclaim their memory is to remove all references to the code they are in.
|
|---|