in reply to Clearing a namespace
i've always just used undef $foo when i've needed to explicitly blow away an instance of a variable.
you can always just re-assign values. coding $foo = 'blalal'; after $foo gets a value is appropriate.
if you need to blow away a namespace in the middle of a script i suspect there's something lacking in the design ( esp. if variable re-assignment doesn't fit the task).
UPDATE: merlyn has corrected me on terminology. namespaces don't go out of scope. variables in a namespace go out of scope.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Clearing a namespace
by merlyn (Sage) on Oct 04, 2000 at 03:19 UTC |