in reply to Re^3: Module Naming Dilemma
in thread Module Naming Dilemma

I don't understand. Why can't they have "::" in them? This works:

use aka "Really::Long::Module::Name", as => "R::Name"; my $foo = R::Name->some_class_method;

However, messing with someone else's namespace is a really bad idea and it is documented that the programmer shouldn't do that.

Cheers,
Ovid

New address of my CGI Course.

Replies are listed 'Best First'.
Re^5: Module Naming Dilemma
by tilly (Archbishop) on Jan 05, 2005 at 22:53 UTC
    I was assuming that you were just assigning to a typeglob to get the function created, in which case the appropriate typeglob manipulation would either put that in the wrong package or would need extra logic.

    I guess that you either did it differently than I expected, or you have the necessary extra logic.

      I didn't do the typeglob trick because putting things into other packages breaks stuff. I just create a sub that returns the package names (there's more than that, but not much.)

      Cheers,
      Ovid

      New address of my CGI Course.