Chris Ball > base-Glob-0.01 > base::Glob

Download:
base-Glob-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

base::Glob - Establish IS-A relationships based on globbing patterns

SYNOPSIS ^

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

DESCRIPTION ^

This module allows you to extend base to form IS-A relationships with the use of globs on packages in the symbol table - in the style of Java's 'import java.class.*;'.

DEPENDENCIES ^

Text::Glob Devel::Symdump Sub::Uplevel

BUGS ^

Probably.

TODO ^

Go all the way to Java-style by spidering to find modules to require and add to @ISA.

AUTHOR ^

Chris Ball, <chris@cpan.org>.

THANKS ^

Michael Schwern for Sub::Uplevel, Andreas Koenig for Devel::Symdump, Richard Clamp for both Text::Glob and being scary enough to work out that Sub::Uplevel would make this work.

syntax highlighting: