Bug 8746 [Follow-up] Replace == by eq in string comparison

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
All tests and QA script pass.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
Julian Maurice 2013-03-19 13:54:32 +00:00 committed by Jared Camins-Esakov
parent a4e8443691
commit 357cf7fdd8

View file

@ -53,14 +53,14 @@ splitfile() {
if ($closed) {
open($out, ">", sprintf("$prefix%02d", $i));
$closed = 0;
if ($indexmode == "dom" && $line !~ /<collection>/) {
if ($indexmode eq "dom" && $line !~ /<collection>/) {
print $out "<collection>";
}
}
print $out $line;
$count++ if ($line =~ m|^</record>|);
if ($count == $size) {
if ($indexmode == "dom" && $line !~ m|</collection>|) {
if ($indexmode eq "dom" && $line !~ m|</collection>|) {
print $out "</collection>";
}
$count = 0;