in reply to Re: Grabbing Variable Names
in thread Grabbing Variable Names
For me, this test correctly prints "not defined" and "glob exists" but shouldn't it also print "declared" and "exists?"sub hello; *fn = $::{'hello'}; print "declared\n" if *fn{CODE}; print "not defined\n" if ! defined &fn; print "exists\n" if exists &fn; print "glob exists\n" if exists $::{'hello'};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Grabbing Variable Names
by ihb (Deacon) on Mar 30, 2005 at 21:19 UTC |