At that point, only the directory inputted by the user is in @directories_to_search. For example, if 'perl fileDateTime.pl "C:\Program Files"' was executed, @directories_to_search only contains the path "C:\Program Files".
My initial thought of the find() function was that the second argument included all subdirectories within a parent directory, hence my code to get all files within the input directory, iterate through each, and add subdirectories to @directories_to_search. When I removed that block of code before, I realized that I could simply pass the input directory as the second argument to find(), but when I removed the code that deals with @directories_to_search, the program enters an infinite loop when a directory with no space is passed as the input directory (e.g., C:\drivers).
In reply to Re^2: Invalid top directory at C:/Perl/lib/File/Find.pm line 598
by JHermida
in thread Invalid top directory at C:/Perl/lib/File/Find.pm line 598
by JHermida
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |