my @remaining = grep {defined} split /[+-]{2,}/, $righteq; # fixed 2nd arg error