# Function call style. if (grep $something, @array) { ... } my @result = grep $thingie, @array;