in reply to Re: What delete from symbol table really means? (Deleting typeglob of a specified package)
in thread What delete from symbol table really means? (Deleting typeglob of a specified package)
lanx@lanx-1005HA:~/pm$ cat tst_glob.pl $\="\n"; $n=123; $gr=\*n; print *n{PACKAGE}," :: ",*n{NAME}," = ", ${*n{SCALAR}}; delete $main::{n}; print *{$gr}{PACKAGE}," :: ",*{$gr}{NAME}," = ", ${*{$gr}{SCALAR}}; lanx@lanx-1005HA:~/pm$ perl tst_glob.pl main :: n = 123 main :: n = 123
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What delete from symbol table really means? Symbol::delete_package
by Anonymous Monk on Feb 16, 2015 at 19:28 UTC | |
by LanX (Saint) on Feb 16, 2015 at 19:42 UTC |