--- awstats.orig/wwwroot/cgi-bin/awstats.pl 2005-11-24 20:11:19.000000000 +0000 +++ awstats/wwwroot/cgi-bin/awstats.pl 2006-05-09 18:14:50.281999180 +0000 @@ -1199,13 +1199,11 @@ # Correct relative include files if ($FileConfig =~ /^(.*[\\\/])[^\\\/]*$/) { $includeFile = "$1$includeFile"; } } - if ($level > 1) { - warning("Warning: Perl versions before 5.6 cannot handle nested includes"); - next; - } - if ( open( CONFIG_INCLUDE, $includeFile ) ) { - &Parse_Config( *CONFIG_INCLUDE , $level+1, $includeFile); - close( CONFIG_INCLUDE ); + use Symbol; + my $confighandle2 = gensym; + if ( open( $confighandle2, $includeFile ) ) { + &Parse_Config( $confighandle2 , $level+1, $includeFile); + close( $confighandle2 ); } else { error("Could not open include file: $includeFile" );