Hi folks,

        I'm porting a script to Windows, and I've run into an
odd mismatch between the results returned by "glob" and the 
-f operator.  If I take a test script like the following:

my @files = glob ("*.exe");
for my $f (@files) {
        print "Processing \"$f\"...\n";
        -f $f && process_file($f);
}

I find that any file name returned by glob fails the "-f" test.
If I put the same file name directly into "-f", the test succeeds.
There don't appear to be any extra trailing or leading characters
on the glob results.

        The only explanation I can think of is that it's a
character set problem.  Can anybody explain what's going on here?

                                        Thanks,
                                        Bryan
-- 
========================================================================
Bryan Wright              |"If you take cranberries and stew them like 
Physics Department        | applesauce, they taste much more like prunes
University of Virginia    | than rhubarb does."  --  Groucho 
Charlottesville, VA  22901|                     
(434) 924-7218            |         [EMAIL PROTECTED]
========================================================================


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to