vcherubini
Programmer
Hello, I have a problem with directory tree calling in Perl.<br><br>The code that I have is this:<br><br><FONT FACE=monospace><br><br>opendir(DIRHANDLE, "C:\Cd\Data\"
or die "Cant open /Cd/Data/: $!";<br>while ( defined ($filename = readdir(DIRHANDLE)) ) {<br>print "$filname\n";<br>}<br>closedir(DIRHANDLE);<br><br></font><br>which should print out a file in the directory that I am accessing, except it doesn't. <br><br>Any help on how to open a directory, put all of the files in the directory into an array, and print each member of the array with a foreach loop? (I know how to do the last one)<br><br>Any help would be appreciated.<br><br>Thanks a lot.<br><br>-Vic