diff --git a/external-account-totals-reconcile.plx b/external-account-totals-reconcile.plx index 73f576f..e563eb1 100755 --- a/external-account-totals-reconcile.plx +++ b/external-account-totals-reconcile.plx @@ -53,7 +53,7 @@ my(@accountOptions) = ('--wide-register-format', '%-.150A %22.108t\n', '-w', '- my %externalBalances; while (my $line = ) { - next unless + next unless $line =~ /^\s*(\S+\:.+)\s+[\(\d].+\s+\(?\s*([\d\.\,])+\s*\)?\s*$/; my($acct, $value) = ($1, $2); @@ -68,7 +68,7 @@ while (my $line = ) { chomp $line; $line =~ s/^\s*//; $line =~ s/\s*$//; next unless - /^\s*(\S+\:.+)\s+[\(\d].+\s+\(?\s*([\d\.\,])+\s*\)?\s*$/; + $line =~ /^\s*(\S+\:.+)\s+[\(\d].+\s+\(?\s*([\d\.\,])+\s*\)?\s*$/; my($acct, $value) = ($1, $2);