Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Hello esteemed monks, long time no post.

My company has long distributed perl with our software package (a common practice). We ship a semi-complete default build with a semi-full compliment of modules. For reasons that will soon be obvious, we've always avoided modules that need Config.pm and avoided distributing Config.pm as well. Of course, this is due to the fact that if we build on machine A, package up the perl install and it's installed on machine B, then the Config.pm is invalid.

As with most things in software, this seemed like a good idea until it wasn't. Now I need to use a module that does require Config.pm (actually I need a module that needs a module that needs a module that needs a module that needs Config.pm - LWP::Simple->IO::Socket::INET->IO::Socket->IO->XSLoader->Config, for the curious).

I have been trying to find a way to build out a Config.pm on the fly (without doing a full compile and install, which is verboten). I could even see just building a partial Config.pm with only those items I need in it, which would seem to be a good idea on the surface since I could avoid items of great potential conflict. The problem with the partial Config.pm is that I've not yet determined how many of those items I need are likely to be in conflict on similar plaforms (I can live with one per platform {Solaris, Linux, AIX}, but one per version {Solaris8 vs Solaris9} would a large amount of work). I know I could brute force build out a bunch of Config.pm files and then use tricks to call the right one, but that's a lot of overhead up front and is still not garunteed to work in every case.

Ideas?

Thanks

We speak the way we breathe. --Fugazi

In reply to Generate Config.pm for distribution in a package? by jptxs

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others pondering the Monastery: (7)
    As of 2014-12-21 19:41 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?





      Results (107 votes), past polls