Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   Cgi-perl (http://siteownersforums.com/forumdisplay.php?f=13)
-   -   How to read a directory in Perl? (http://siteownersforums.com/showthread.php?t=358892)

Pavan Techn 06-01-2018 11:14 PM

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.


All times are GMT -7. The time now is 06:53 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.