Hi I am using activestate perl 5.14. How do I include Tk package when I store it in the same directory as my script.?

Please forgive me, but I have to ask: why do you want to do that?

Normally the best way with ActivePerl is to use the ppm tool (just type ppm at the command prompt to start the GUI version) and let the installer do its thing (puts Tk in the normal directory package directory structure). With 5.14 and I think even 5.12, Tk does not come as part of the base installation.

There are ways to put Tk somewhere else, but this can get messy and before getting really involved in something complicated, understanding your rationale would help me because there may be another way to achieve what you want that is easier. This may be what is known as an XY problem..you are asking about how to do X, but what you really may need is to learn how to do Y.


In reply to Re: Including Perl Tk module in a different location by Marshall
in thread Including Perl Tk module in a different location by bugged123

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.