QuoteAny Num numeric equality
like: Any == Num
QuoteAny Num numeric equality like: Any == Num
QuoteNote from the Author or Editor:
The behavior of the smart matched changed after the fifth edition of Learning Perl came out. Afterward, the smart match was no longer commutative (a huge mistake now), so you now have to put the scalar first (2 ~~ @divisors). If you are using Perl 5.10.0, the code in the exercise should work. If you use anything later, it will fail.
QuoteMan sollt den eh gerade nicht benutzen, der gilt als experimentell.
2014-02-16T21:22:29 der_thomasVerstehe ich das richtig, man sollte den Smart Operator ~~ in Perl 5 (ab 5.10.1) nicht einsetzen ?