Perl functions references-closedir Function - Perl Scripting

what is Perl closedir? what is the syntax?

Description

This function closes the directory handle DIRHANDLE.

Syntax

Following is the simple syntax for this function −

Return Value

This function returns 0 on failure and 1 on success.

Example

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 DMCA.com Protection Status

Perl Scripting Topics