06-01-2018, 11:14 PM | #1 |
Registered User
Join Date: Mar 2018
Posts: 341
|
How to read a directory in Perl?
To read a directory in Perl, readdir function is used. In scalar context, it will return each item one by one. In list context, it will return all the content of directory in one statement. So list context uses more memory than scalar context.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|