Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by ikegami (Patriarch)
on Sep 22, 2004 at 21:33 UTC ( [id://393056]=note: print w/replies, xml ) Need Help??


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

Note: The above has the side effect of passing an extra argument to _x. Probably acceptable.
  • Comment on Re^2: Getting module to call importer's function

Replies are listed 'Best First'.
Re^3: Getting module to call importer's function
by jredburn (Sexton) on Sep 22, 2004 at 21:44 UTC
    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.
      yes there is. See the first post in this thread. To pass params, do &$func($param1, $param2);

      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://393056]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-25 20:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found