foreach (@config) {   if ( /^index_file = "(.+)";$/ ) { $index_file = $1; last } }