14

glob in perl doesn't work on RHEL 6.2 webserver

view full story
linux-howto

http://serverfault.com – 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 "\n"; print "SIZE: $size\n"; print"\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. what gives? (HowTos)