here's a very simple script:
[root@poker cgi-bin]# cat globtest.pl #!/usr/bin/perl -w my $foo="/tmp/*"; my @glob=glob($foo); my $size=scalar(@glob); print "Content-type: text/html\n\n"; print "<html><head>\n"; print "SIZE: $size\n"; print"</head></html>\n";
when I run it from a URL on a RHEL5.3 system, it tells me how many files are in /tmp, but when I run it on a RHEL 6.2 box it reports 0.
actually it's more complicated than I thought and forgot to mention. This is running in a VirtualBox VM. I have another machine running vmware and it works fine in a RHEL62 VM there.