in reply to Re^2: Getting module to call importer's function
in thread Getting module to call importer's function

Yep, got this working. Is there a way to call the function in a different context so as not to have to stick a dinky shift; at the start of _x? I'm trying some of the other discussed options, but can't get them working with passing parameters to _x.

Replies are listed 'Best First'.
Re^4: Getting module to call importer's function
by ikegami (Patriarch) on Sep 22, 2004 at 21:47 UTC
    yes there is. See the first post in this thread. To pass params, do &$func($param1, $param2);
Re^4: Getting module to call importer's function
by fglock (Vicar) on Sep 23, 2004 at 04:36 UTC

    Actually, the "class" parameter is important if you are thinking about using OO style - it makes it possible to subclass those methods properly. And it is easy to just shift it out while it is not needed.