in reply to Getting error while running file

The module IO::Tty will not work on Windows. As the README says:

Sorry, ActiveState Perl on Windows is not supported, basically because there are no pseudo-terminals under Windows.

/J\