in reply to Problem in "any"
#!/usr/bin/perl use warnings; use strict; use List::MoreUtils qw{ any }; my @line_numbers = (1, 2, 5, 6, 9, 10, 18, 19, 23, 24, 25, 30, 31, 33) +; for my $line_number (1 .. 35) { if (any { $_ == $line_number } @line_numbers) { print "$line_number :\n"; } }
But for the same output, you can just use
print map "$_ :\n", @line_numbers;
Instead of the for loop.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|