Hello Perl Monks !!

I need a Perl/Tk module which works with different versions of perl. We use Perl/Tk to create many scripts in our organisation. But the problem that we found lately was that we have different perl versions at different site locations.

My observations so far:
1) Tried invoking perl v5.10.1 to use Perl/Tk module that used to work fine with perl v5.8.8. There was a symbol lookup error pointed. After checking the online stuff for similar errors, I learnt that I will need to change the perl module.

2) Installed Perl/Tk for perl v5.10.1. However, I landed up on similar error when tried using this newly downloaded Perl/Tk module with per v5.22.1. Also, I found that this newly downloaded Perl/Tk module for perl v5.10.1 is not working with perl v5.8.8

3) Installed Perl/Tk for perl v5.22.1. This time I landed up in issues when I used this newly dowloaded Perl/Tk module with perl v5.10.1 or perl v5.8.8. The error said somewhat like this "Can't load Tk.pm" which again appeared as version dependency of Perl/Tk as it worked well with perl version for which it was downloaded.

From above observations, one would assume that Perl/Tk module has a huge dependency on Perl versions. Everytime you upgrade your perl version, you need to also download a new compatible Perl/Tk module.

The support I seek here is to answer below questions:

Q-1) Is there any way that I can get a single Perl/Tk module which works for different Perl versions (or at least perl versions higher or same as perl v5.8.8)?

Q-2) If the answer to above question is "Not Possible!". Then is it really wise to use Perl/Tk module in the projects? I assume here that there will be many other users who might have faced this problem. But to my surprise I could not find any reasonable help online. Requesting all perlmonks to throw some light here.

Info that might be needed to refer:
=> OS used: Redhat Enterprise Linux Client (Release 6.7)
=> calling Tk module using "use Tk". The errors mentioned above are shown at this line.
=> Testing for a given Perl/Tk module with different perl version was done on different machines that has different perl versions installed
=> ______ - Let me know if any further info is needed.


Thanks a lot for your support !!

In reply to Perl/Tk Version Dependency Issue by rkabhi

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.