Help for this page
use strict; sub contains_pattern { ... }; my @files = grep { contains_pattern $_, qr/^source*/ } @arr1;