1 |
chdir($name); transfers to directory specified in $name
|
2 |
mkdir($name, mode); # makes directory with given name $name and MODE (typically 3 octal characters such as 0755)
|
3 |
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
|
4 |
closedir(DIRHANDLE); # closes directory associated with handle DIRHANDLE
|
5 |
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
|