[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 152
  • Last Modified:

How Reading Directory Works?

How do you following two lines of code work? mvfs_drive_letter contains M

opendir (DIR, "$mvfs_drive_letter:");
$file = readdir DIR;

Thanks.

0
naseeam
Asked:
naseeam
1 Solution
 
Adam314Commented:
The first line creates a handle (named DIR) to the directory.
The second line reads the first entry (file or directory) in that directory.  
0
 
TintinCommented:
perldoc -f readdir
perldoc -f opendir
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now