my $val = $1; # so far so good
# Only let them specify one filename directive.
- push @errors,
- "Only one filename directive is allowed per directive file. "
- ."Error at filename directive: $val."
- if defined $header{filename};
+ if (defined $header{filename}) {
+ push @errors,
+ "Only one filename directive is allowed per directive file. "
+ ."Error at filename directive: $val.";
+ next;
+ }
$header{filename} = $val;
$info{"filename"} = {"value" => $val, "order" => $cnt++}; # ok.
next;
}
- push @errors,
- "invalid directive 'replace', not supported prior to version 1.2"
- if $header{version} eq '1.1';
+ if ($header{version} eq '1.1') {
+ push @errors,
+ "invalid directive 'replace', not supported prior to version 1.2";
+ next;
+ }
$options{replace} = ($1 eq 'true');
$info{"replace"} = $1; #ok.