Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Sharing Namespaces

by gloryhack (Deacon)
on Jan 27, 2006 at 07:32 UTC ( #525919=note: print w/replies, xml ) Need Help??


in reply to Sharing Namespaces

use One; use Config; my $config = Config -> new(); my $one = One -> new(); if ($one -> can('config') { $one -> config($config); }
There's one.

Replies are listed 'Best First'.
Re^2: Sharing Namespaces
by skazat (Chaplain) on Jan 27, 2006 at 09:19 UTC
    erm, ok, what's $config? A reference to a variable? A typeglob... what? At the moment, the Config.pm module isn't an OO bit of code, it's just a list of variables, basically - that's why I was interested in exporting the entire namespace (sorry if that wasn't clear - my bad)

     

    -justin simoni
    skazat me

      Upon re-reading, it's perfectly clear that your Config.pm is a data store... the lack of clarity was all on my end.

      I have a possibly irrational aversion to allowing modules to pollute my namespace, so were it mine to do I'd subclass Config.pm to provide an interface layer and work toward phasing out the legacy version over time.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2022-06-25 04:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (81 votes). Check out past polls.

    Notices?