Roode, Eric wrote:
> perl -le "print for glob ('c:\\dev\\*')"
>
> The above command prints out
>
> c:\dev\import
> c:\dev\lib
> c:\dev\test.pl
>
> etc. This is what I'd expect.
>
> perl -le "print for glob ('\\\\MyServer\\MyShare\\MyDir\\*')"
>
> This prints nothing. However, the command
>
> dir \\MyServer\MyShare\MyDir\*
>
> does print out the list of files in that directory. So I know there are
> files there, and I know that at some level the filesystem can parse that
> syntax. Why does glob() not work? Is there a way to get a list of
> files that match a pattern, whether those files are on a local drive or
> on a server share?
Try:
use strict;
use warnings;
use File::DosGlob;
print "$_\n" foreach File::DosGlob::glob ('\\\\Dollar\\c\\Temp\\*');
__END__
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs