# HG changeset patch # User heiko # Date 1421071056 -3600 # Node ID 26b84b6da13929d0a95d95abde279e4f2cf34c9d # Parent cf75cb35c0837f10125865a4d2cb158f39d331e2 IncludeOptional as used by newer apache diff -r cf75cb35c083 -r 26b84b6da139 lib/App/read_httpd_conf.pm --- a/lib/App/read_httpd_conf.pm Wed Jul 16 23:37:06 2014 +0200 +++ b/lib/App/read_httpd_conf.pm Mon Jan 12 14:57:36 2015 +0100 @@ -26,7 +26,7 @@ $_ .= <$fh>; redo; } - if (/^\s*include\s+(?["'])?(?.*?)\k?\s*$/i) { + if (/^\s*include(?:optional)\s+(?["'])?(?.*?)\k?\s*$/i) { my $file = $+{file} =~ m{^/} ? $+{file} : "$basedir/$+{file}"; say "# $. $file INCLUDE $+{file}"; read_file($_, $basedir) foreach (glob -d $file ? "$file/*" : $file);