Is your application installed *as* a perl module? or installed under Program Files as an entire tree of files that you deliver to them?

If the former, then you could write your Makefile.PL to detect the bit-width of perl and set the appropriate make flags, so that one distribution can be installed in both perls. You can't really share the resulting directory between multiple versions of Perl because the installer tools like 'cpanm' will only install the 32 *or* 64 bit versions of all your dependencies. When the user switches perl versions, they need to start from an empty module include path and re-install things as needed.

If the latter, and you're distributing binaries (which presumes you know the exact version of Strawberry for both bit-widths of perl your customers are running) then yes you could make a 32-bit build and a 64-bit build that use different directory names for the Tk .dll files, and just merge the trees together before you ship it to the customer. This would save a lot of redundant pure-perl source files from getting installed.

If you run into trouble, the simplest solution would be to just ship a complete 32-bit and complete 64-bit module tree, and write a front-end script that chooses which path to add to @INC based on which perl ran it.


In reply to Re: Can 32-bit and 64-bit modules coexist in a working installation? by NERDVANA
in thread Can 32-bit and 64-bit modules coexist in a working installation? by hexcoder

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.