in reply to Compilation Error:

You cannot use chomp as the left hand side of an assignment. You can, though, chomp the left hand side of an assignment:
chomp($answer = <STDIN>);
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ