Hacker News new | ask | show | jobs
by petre 864 days ago
You are upgrading the number type to string when you are doing the eq operation and from string to number when doing ==.

https://perldoc.perl.org/perlnumber