the problem is that myscript.pl and MyModule will be changed often and not only be me, so I want them to be saparate not included in the .par
I'm afraid I can't answer your specific question, but this phrase got me thinking. If the reason you want to keep these files out of the PAR file is so they can be modified, perhaps a different approach would work. Would it be possible to use a config file that contains the data that will be modified rather than hard-coding it? That would not only clean up the overall program, but it would allow you to use PAR in the traditional manner. There are several modules related to config files on CPAN: Config::General, Config::IniFiles, Config::Simple, etc. If you need to modify code (rather than simply parameters), you could provide a separate file that could be used (via do? Another monk might be able to confirm that) to add methods to any package in the program.

Just some things to consider. If you can't solve the problem, try to go around it. :-)


In reply to Re: PAR packaging by bobf
in thread PAR packaging by rootcho

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!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            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.