in reply to Re^3: getpwuid issue
in thread getpwuid issue

Well...Obviously I'm a novice at perl. I had an assumption that perl could be portable across various OS - but apparently not that easily. I'm not asking anyone to implement anything...but help with providing an alternative solution.

Replies are listed 'Best First'.
Re^5: getpwuid issue
by afoken (Chancellor) on Dec 02, 2011 at 17:13 UTC
    I had an assumption that perl could be portable across various OS - but apparently not that easily.

    Right. Perl was written on Unix systems and tries really hard to provide that interface even on other systems. But Windows really sucks at being a Unix. ;-) Your best best may be one of the modules with Win32 in its name. To find the name of a files owner, you need to call a different function on Windows.

    See also perlport and the links at the end of that document.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re^5: getpwuid issue
by marto (Cardinal) on Dec 02, 2011 at 17:54 UTC