Hi, y'all! I've got a problem with a Perl Script I wrote to find files matching a special pattern. It worked fine until I commented it. From that time on the program has got problems with that WIN32 feature called "You want spaces in your file name? Then do it!". If the program finds a directory containing a space, it returns the path without spaces and backslashes. This doesn't make sense to me (especially because it worked before). Following is the snipplet from the source that causes the troubles:
sub searchFiles { # get the arguments (my $currDir) = @_; # get all files in the directory matching the file filter my @allFiles = glob("$currDir\\$filter"); The glob function (I found that one out with debugging) causes the problems. The $file variable contains the complete path to check next, and $filter contains the file filter (e.g. "*.java"). BTW: This program was supposed to work either under Unix AND Windows. Is there a chance to get the path separator for the current operating system like in Java (File.pathSeparator)? Thanks in advance Jochen Berger --------------------------------------------------------------------------------------------- Der Verstand und die Fähigkeit, ihn zu gebrauchen, sind zwei verschiedene Gaben. Franz Grillparzer (österr. Dichter, 1791 - 1872) ______________________________________________________________________________ Keine Chance fur Viren! Mit WEB.DE FreeMail sind Sie auf der sicheren Seite - Virenschutz inklusive! http://freemail.web.de/?mc=021129 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]