kranthi has asked for the wisdom of the Perl Monks concerning the following question:

Hi Perl Monks, I am trying to implement Term::ShellUI on windows box, but while executing the sample program i get the below error message:

The getpwuid function is unimplemented at C:/Perl/site/lib/Term/ShellUI.pm line 821.

Hence request you to show me the solution for the same.
  • Comment on Term::ShellUI -> getpwuid function is unimplemented

Replies are listed 'Best First'.
Re: Term::ShellUI -> getpwuid function is unimplemented
by Erez (Priest) on May 29, 2008 at 15:16 UTC

    It means the function getpwuid() is unimplemented on Windows. You need to assign either $ENV{HOME} or $ENV{LOGDIR} to an existing path (i.e. $ENV{HOME} = 'd:\home\folder', which will prevent the call to getpwuid()

    And in the future, you should really post some code example and what you're trying to accomplish, it would give you more chances of getting assistance.

    Stop saying 'script'. Stop saying 'line-noise'.
    We have nothing to lose but our metaphors.

Re: Term::ShellUI -> getpwuid function is unimplemented
by roboticus (Chancellor) on May 29, 2008 at 15:17 UTC
    kranthi:

    Perhaps "use Posix;" would be helpful as you're running windows....

    ...roboticus
      Hi, If you are using CPAN example, please remove the following line: history_file => '~/.shellui-synopsis-history',