Perl functions references-chown Function - Perl Scripting

what is chown function?


This function is used to change 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. This funcation call works in similar way as unix command chown. Thus you need to have sufficient capacity to change the permission of the file.


Following is the simple syntax for this function −

Return Value

This function returns the number of files successfully changed.


Following is the example code showing its basic usage −

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

Perl Scripting Topics