T
Theo van den Heuvel
Hi,
The following script behaves differently on two Windows machines, one
XP with v5.10.0, the other Vista with v5.10.1. Here is the script:
<script>
#!/usr/bin/perl
use strict;
use warnings;
use FindBin qw($Bin);
# use File:osGlob 'glob';
my $subdir = "$Bin/FIResources";
my @file = <"$subdir/*">;
my @file_again = glob("\"$subdir\"/*");
print "angular: ", join(', ', @file), "\n";
print "glob: ", join(', ', @file_again), "\n";
</script>
On XP the script lists the files in both print statements. On that
system the path
contains spaces (I know, not my idea).
The Vista directory does not contain spaces, but both arrays remain
empty.
Any suggestions?
Thanks
Theo van den Heuvel
The following script behaves differently on two Windows machines, one
XP with v5.10.0, the other Vista with v5.10.1. Here is the script:
<script>
#!/usr/bin/perl
use strict;
use warnings;
use FindBin qw($Bin);
# use File:osGlob 'glob';
my $subdir = "$Bin/FIResources";
my @file = <"$subdir/*">;
my @file_again = glob("\"$subdir\"/*");
print "angular: ", join(', ', @file), "\n";
print "glob: ", join(', ', @file_again), "\n";
</script>
On XP the script lists the files in both print statements. On that
system the path
contains spaces (I know, not my idea).
The Vista directory does not contain spaces, but both arrays remain
empty.
Any suggestions?
Thanks
Theo van den Heuvel