open F, ">C:/development/project/dev/-71.95_41.0528." or dir $!;close F; open F, ">C:/development/project/dev/-71.95AAA_41.0528AAA." or dir $!;close F; open F, ">C:/development/project/dev/-71.95BBB_41.0528BBB." or dir $!;close F; open F, ">C:/development/project/dev/-71.95CCC_41.0528CCC." or dir $!;close F; my $fname = "C:/development/project/dev/-71.95*_41.0528*."; my @list = glob($fname); print "I found " . scalar @list . " entries\n"; print "$_\n" for @list; # lose the . at the end - Windows does! my $fname = "C:/development/project/dev/-71.95*_41.0528*"; my @list = glob($fname); print "I found " . scalar @list . " entries\n"; print "$_\n" for @list; # this is how to roll your own glob but you don't need to!!! sub _glob { my($dir,$file) = shift =~ m!^(.*?)([^\\/]+)$!; opendir DIR, $dir or die $!; $file = quotemeta $file; $file =~ s/\\\*/.*/g; $file = qr/$file/; my @files = grep{/$file/}readdir DIR; closedir DIR; $_ = $dir.$_ for @files; return @files; } # here is the output, note the CHANGE to the filenames!!! # You can see we named the "file." but they end up being # called "file" That's Windows for you __END__ I found 0 entries I found 4 entries C:/development/project/dev/-71.95AAA_41.0528AAA C:/development/project/dev/-71.95BBB_41.0528BBB C:/development/project/dev/-71.95_41.0528 C:/development/project/dev/-71.95CCC_41.0528CCC