Using Term::Readkey on Windows

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 1.pl line 17.

this line mean use Term::ReadKey;

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

Irina_dushaAsked:
Who is Participating?
 
jmcgConnect With a Mentor OwnerCommented:
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.
0
 
manav_mathurCommented:
your error is coming because it can;t find the proper file. The complete path of the file as required should be
C:/Perl/lib/Term/Readkey.pm
or
C:/Perl/site/lib/Term/Readkey.pm

how did you install the module??
0
 
manav_mathurCommented:
Also, visit

http://search.cpan.org/~jstowe/TermReadKey-2.30/ReadKey.pm

For method defined in the module, the page explains how they work in Windows environment
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
Irina_dushaAuthor Commented:

I just copyed to the C:/Perl/lib/Term this file ,but this is not help me ,the same error
0
 
manav_mathurCommented:
Can you give me the full pathname of the readkey.pm file as seen on your system?? i.e c:\perl\so\and\so\Term\readkey.pm
0
 
Irina_dushaAuthor Commented:
Thanks ,jmcg
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.