programming-examples/perl/File/The chown function changes the owner and group of a list of files.pl

13 lines
173 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#Format
#chown(LIST);
#chown LIST;
$ uid=9496;
$ gid=40;
$number=chown($uid, $gid, 'foo.p', 'boo.p');
print "The number of files changed is $number\.n";