Using Term::Readkey on Windows

Posted on 2005-04-11
Last Modified: 2008-02-01
How can I install and use Term::Readkey module on the Windows XP?

I Copied it to the direcory c:\Perl\lib\Term

But when I run my programm ,I received an error:

Can't locate loadable object for module Term::ReadKey in @INC (@INC contains: C:
/Perl/lib C:/Perl/site/lib .) Compilation failed in require at line 17.

this line mean use Term::ReadKey;

Maybe it doesn't work on windows ?
Thanks for help

Question by:Irina_dusha
    LVL 16

    Expert Comment

    your error is coming because it can;t find the proper file. The complete path of the file as required should be

    how did you install the module??
    LVL 16

    Expert Comment

    Also, visit

    For method defined in the module, the page explains how they work in Windows environment

    Author Comment


    I just copyed to the C:/Perl/lib/Term this file ,but this is not help me ,the same error
    LVL 16

    Expert Comment

    Can you give me the full pathname of the file as seen on your system?? i.e c:\perl\so\and\so\Term\
    LVL 20

    Accepted Solution

    The Term::ReadKey module is not pure perl; it contains a .xs file written C that must be compiled to connect Perl with the underlying terminal I/O system. You cannot install it by merely copying files.

    On Windows, if you are using ActivePerl, you'd install Term::ReadKey by running a command like:

    ppm install TermReadKey

    to install the pre-compiled package.

    Author Comment

    Thanks ,jmcg

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
    In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now