Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Getting module to call importer's function

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

Help for this page

Select Code to Download


  1. or download this
    sub x {
       my $func = do { no strict 'refs'; *{caller() . '::_x'}{CODE} };
    ...
       &$func;
       # or &$func(...);
    }
    
  2. or download this
    package M;
    
    ...
    outputs
    =======
    main::_x(a, b)
    
  3. or download this
    package M;
    
    ...
    outputs
    =======
    main::_x(a, b)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found