chdir($name); transfers to directory specified in $name
|
mkdir($name, mode); # makes directory with given name $name and MODE (typically 3 octal characters such as 0755)
|
opendir(DIRHANDLE, $name); # opens directory with directory handle DIRHANDLE. Such names can be assigned independently of all other names and are in particular not connected with FILEHANDLEs
|
closedir(DIRHANDLE); # closes directory associated with handle DIRHANDLE
|
readdir(DIRHANDLE); # returns file names (including . and ..) in directory with handle DIRHANDLE
-
If scalar result, readdir returns "next" file name
-
If array result, readdir returns all file names in directory
|