Perlriders has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am currently trying to install the module called TK.pm. We need it to allow us not to press enter while our code is running. For example, Perl accepting the option "A" without the user hitting the enter key. I keep getting an error while trying to install this module. I have tried: cpanm Term::Termkey, cpan -i TK, cpan -i tk.pm, cpanm Tk.pm, they all result in an error. It also tells us Alien-libtermkey is missing, but trying to install that results in an error too. Any help on installing the TermKey module will be appreciated. Thank you.

Replies are listed 'Best First'.
Re: Term Key
by kcott (Archbishop) on Mar 28, 2014 at 21:26 UTC

    G'day Perlriders,

    Welcome to the monastery.

    There is no module called TK either in the core distribution or on CPAN.

    There is a module called Tk. The Tk is from Toolkit: it's a GUI Toolkit.

    The documentation for cpan and cpanm may be of help.

    Beyond that, follow the advice already given by Anonymous Monk (above).

    -- Ken

Re: Term Key
by Anonymous Monk on Mar 28, 2014 at 20:56 UTC
    I am currently trying to install the module called TK.pm

    That file is not a part of Term::Termkey. I'm going to assume you are talking about the latter.

    I keep getting an error while trying to install this module.

    Which error? Show your output.

    What OS are you running this on? Do you happen to be using ActiveState Perl?

    Have you tried cpan Term::TermKey ?

    You may also want to look at Term::ReadKey for your task.

    Please see How do I post a question effectively?