Perl functions references-chown Function - Perl Scripting

what is chown function?

Description

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.

Syntax

Following is the simple syntax for this function −

Return Value

This function returns the number of files successfully changed.

Example

Following is the example code showing its basic usage −

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

Perl Scripting Topics