Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Getting module to call importer's function

by jredburn (Sexton)
on Sep 22, 2004 at 21:44 UTC ( [id://393059]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://393059]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2024-04-19 18:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found