Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

ActiveState Perl 5.16 and TK

by welle (Beadle)
on Feb 02, 2013 at 13:10 UTC ( #1016709=perlquestion: print w/replies, xml ) Need Help??
welle has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks

It is known that ActiveState Perl 5.16 doesn't have direct support for TK. Before I downgrade my installation or change to another distribution, I'd like to know if somebody has been able to run scripts with TK with the ActiveState Perl 5.16 distribution. I have read here where it is stated that it was possible to have TK installed on 5.14. The same seems not to apply for 5.16. Any suggestions? Switching to TKX is not an option, as all my codes use TK...

Replies are listed 'Best First'.
Re: ActiveState Perl 5.16 and TK
by BrowserUk (Pope) on Feb 02, 2013 at 14:58 UTC

    Yes. The latest Tk from cpan built (noisily) and tested (mostly) successfully and installed for AS 5.16.1 (64-bit) (using MSVC).

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re: ActiveState Perl 5.16 and TK
by Anonymous Monk on Feb 02, 2013 at 21:53 UTC
Re: ActiveState Perl 5.16 and TK
by GrandFather (Sage) on Feb 15, 2013 at 08:30 UTC

    I've just used the GUI PPM to install Tk 804.029 from Bribes. Under Edit|Preferences 'Add' an entry for Bribes with the URL

    True laziness is hard work
      I've just used the GUI PPM to install Tk 804.029 from Bribes

      Bribes is back ?
      That's great news - it was missing for quite a while and I was starting to think that it might be gone permanently.

      There is also, that's what I needed for my Windows 7 64-bit version. The other was showing 0 packages available. :-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1016709]
Approved by johngg
Front-paged by ww
[Lady_Aleena]: Corion, ouchy.
[Corion]: (maybe I should write this up as a SoPW) - currently, the "most efficient" data structure I come up with is a single array which I scan for the first fitting one-shot. Not efficient but I don't expect more than five outstanding one-shots anyway
[choroba]: can't you create a meta-key corresponding to the disjunction of the events?
[robby_dobby]: Corion: Heh. This whole thing smells of Strategy Pattern or MVC pattern.
[Corion]: And performance linear to the number of registered one-shots doesn't feel that bad. Maybe I should collect statistics on how many callbacks are outstanding ;)
[Corion]: choroba: Yes, but the longer I thought about efficient hashes mapping the event type back to their callbacks, and how to keep them in sync, the more I thought that all that optimization might just not be worth it, even if it's horribly inelegant
[Lady_Aleena]: My biggest problem with hashes at the moment is one with 2,501 keys.
[choroba]: how many event types are there?
[Corion]: Also I found that I can't conveniently weaken an array slot, which also is inconvenient, as I want my one-shots to disappear if the caller discards them
[Corion]: choroba: Currently two or three that my program handles (WWW::Mechanize:: Chrome), but there might be more that become interesting

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2017-05-29 07:54 GMT
Find Nodes?
    Voting Booth?