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