Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: require & import $module_name

by ikegami (Pope)
on Jul 20, 2012 at 05:25 UTC ( #982750=note: print w/ replies, xml ) Need Help??


in reply to require & import $module_name

my $file = $package; $file =~ s{::}{/}g; $file .= '.pm'; require $file; $package->import(@imports);

if already does that, so you could do

require if; if->import(1, $package, @imports);


Comment on Re: require & import $module_name
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-09-22 10:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (188 votes), past polls