$ perl -e 'my @number_larger_than_5 = grep {$_ > 5} 1..10; print " @number_larger_than_5";' 6 7 8 9 10