in reply to examining other package's variable without 'use'
You want the caller() builtin:
my ($package, $filename, $line) = caller; print "It's there!\n" if defined ${$package}::variable;
Actually, I'm not sure if you can access the varible like that, but it should get you started.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|
|---|