Der Errata-Tipp war genau richtig, danke!
Learning Perl 5th Ed. 2008 -- Errata
S.290
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.
Eine beängstigend lange Liste...