So if getpwuid is not implemented or cannot be used in Windows...how do I get the name of the owner of a file ?if (-e $basename) { $attrs = stat($basename); my $fileOwnerID = $attrs->uid; $fileOwner = (getpwuid $fileOwnerID)[0]; #$fileOwner = sprintf "%s",stat($basename)->uid; my $groupID = $attrs->gid; $groupName = (getgrgid $groupID)[0]; }
In reply to Re^2: getpwuid issue
by akrrs7
in thread getpwuid issue
by akrrs7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |