DEV Community

PWC 258 How do I sum thee? Let me count the ones.

Bob Lied on March 02, 2024

Perl Weekly Challenge 258, Count Even Digits Number You are given a array of positive integers, @ints. Write a script to find out how...
Collapse
 
muthm profile image
Matthias Muth

Great idea to use an array slice. Much more elegant than a map call to get the array elements for the filtered indexes!