in reply to Re^2: Perl compare ( numeric in void isn't numeric)
in thread Perl compare

It seems $number4 is not a list, it's a string. So, use string comparison eq and quote the string literals:
if ($number4 eq '1,2') { # ... }
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ