Perl functions references-flock Function - Perl Scripting

what is flock function in Perl?


This function supports file locking on the specified FILEHANDLE by using the system flock( ), fcntl( ) locking, or lockf( ). The exact implementation used is dependent on what your system supports. OPERATION is one of the static values defined here.


Following is the simple syntax for this function −

Return Value

This function returns 0 on failure to set/unset lock and 1 on success to set/unset lock.

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

Perl Scripting Topics