Thanks! It works for me.
Update:
No, it doesn't.
It clears nested packages. It's not required behavior.
#!/usr/bin/env perl package Test1; package Test1::Nested; sub a { print "Test1::Nested::a\n"; } package main; use Symbol; # ok. eval "Test1::Nested::a()"; die $@ if $@; Symbol::delete_package( 'Test1' ); # fails. eval "Test1::Nested::a()"; die $@ if $@;
In reply to Re^2: What is the correct way to clear package?
by vokbuz
in thread What is the correct way to clear package?
by vokbuz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |