Thread smartmatch stupid (18 answers)
Opened by linuxCowboy at 2014-01-29 18:50

linuxCowboy
 2014-01-29 20:19
#173293 #173293
User since
2014-01-29
30 Artikel
BenutzerIn
[default_avatar]
Der Errata-Tipp war genau richtig, danke!

Learning Perl 5th Ed. 2008 -- Errata

S.290
Quote
Note 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.


Eine beängstigend lange Liste...

View full thread smartmatch stupid