in reply to Configuring module by import keyword

In your package Auth write a sub called import that does what you want. See also import and perlmod.

Replies are listed 'Best First'.
Re^2: Configuring module by import keyword
by zoul (Novice) on Sep 04, 2008 at 06:44 UTC
    Thank You, that’s it. My import function ended something like this:
    sub import { # … Auth->export_to_level(1, grep { $_ !~ /^-/ } @_); }
    The grepping part ensures that we do not try to export functions that do not really exist (-auth and such are just pragmas, the corresponding functions do not exist).