On Tuesday, 28 July 2015 08:30:45 UTC+5:30, T wrote:
>
> This line (5)
> use Term::ReadKey::GetTerminalSize;
>
> triggers this response:
> Can't locate Term/ReadKey/GetTerminalSize.pm in @INC (@INC
>
> Now what am I doing wrong?
>
> Many thanks,
> -T
When you say "use Term::ReadKey::GetTerminalSize;"
then perl goes around looking for a module by the name of GetTerminalSize.pm
in the {@INC}/Term/ReadKey/ directories.
What you really need is ReadKey.pm module in which GetTerminalSize() is a func.
So modify the use statement to
use Term::ReadKey; # import all symbols in @EXPORT of ReadKey.pm
or:
use Term::ReadKey qw( GetTerminalSize ); # import only GetTerminalSize