Perl functions references-closedir Function - Perl Scripting

what is Perl closedir? what is the syntax?


This function closes the directory handle DIRHANDLE.


Following is the simple syntax for this function −

Return Value

This function returns 0 on failure and 1 on success.


Following is the example code showing its basic usage −
When above code is executed, it produces the following result −

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

Perl Scripting Topics