On Nov 24, 2004, at 1:15 AM, Kripa Sundar wrote:
I want to do a chgrp() without invoking a child process.
perldoc -f chown says:
chown LIST
Changes the owner (and group) of a list of files. The first
two elements of the list must be the numeric uid and gid, in
that order. A value of -1 in either position is interpreted by
most systems to leave that value unchanged.
so it looks to me like you can use chown(-1, $newgid, $filename) to do what you want.
_______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

