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