my $dir = '/home/testdata';
my @ok_files = glob "$dir/*.xml";
I'm guessing this is an Expect.pm issue. I couldn't duplicate this with Perl 5.8, so I tried installing Perl 5.005_03. Unfortunately I get a bizarre make error after a (apparently) successful configure:
make: *** No rule to make target `<built-in>', needed by `miniperlmain.o'. Stop.
It seems that once upon a time, I used to know what caused this. If I did, I've forgotten now and Google yields precious little.
Update: rafael pointed me to a patch that worked like a charm - thanks rafael!. So, Perl 5.005_03 is installed. On to the core dump part...