in reply to Re^2: How to remove the actual glob from a glob reference
in thread How to remove the actual glob from a glob reference
Thanks for your comments and yes I got your point, I know that undef $b will do, But I need to delete $b using $a, The typeglob itself need to be freed via $a without actually using $b. Have you got it now?."delete $b using $a" doesn't make much sense. Do you want to delete the reference $b (leaving the typeglob it refers to unchanged), or do you want to delete the typeglob itself?
You cant delete the typeglob while a reference to it still exists (from $a or $b). You can however make it undefined, (freeing up any IO handles etc attached to it) with the following:
undef *$a
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to remove the actual glob from a glob reference
by targetsmart (Curate) on Oct 06, 2008 at 13:48 UTC | |
by dave_the_m (Monsignor) on Oct 06, 2008 at 14:08 UTC | |
by targetsmart (Curate) on Jan 02, 2009 at 13:46 UTC | |
by ikegami (Patriarch) on Jan 02, 2009 at 19:58 UTC |