# Function call style. if (grep $something, @array) { ... } my @result = grep $thingie, @array; #### # Method call style. if @array.grep($something) { ... } my @result = @array.grep($thingie); #### # Feed style. my @result <== grep $thingie <== @array; @array ==> grep $thingie ==> my @result; # Another method call style. my @result = grep @array: $thingie;