base::Glob

Elthek on 2002-08-29T00:21:23

package Class::Bar; sub method {2};
package Nomatch::Foo; sub method {3};
package main;
use base::Glob qw(Class::*);
print main->method(); # prints 2

See what going to see Damian talk does to a geek?

I've spent all of this week at work in full-time lectures from Damian. He only started to hurt my brane at the end of today; however, he gave his "Life, the Universe and Everything" talk to London.pm last night - I haven't felt such a feeling of interconnectedness since first reading _Goedel Escher Bach_. He used DFA::Cellular, Quantum::Superpositions and, um, Klingon, to solve Maxwell's Demon. Yow.

Sleeptime now. base::Glob on the CPAN for the above. It's java-style adding of IS-As through globs on packages in the symbol table.