in reply to Getting error while running file

Looks like you didn't correctly install the compiled C part of the library. Note that the documentation of IO::Tty says you need the cygwin environment to run it. I'm not sure if that means it'll only work on cygwin's perl, though. In any case, you probably need to install cygwin.

If you're using ActiveState perl, you might be able to install a pre-compiled version of the module by using the "ppm" command.

If you have a cygwin perl version, you should be able to use cygwin's gcc and make (NOT nmake!) to install the module as under Unix:

> perl Makefile.PL > make > make test > make install