Help for this page

Select Code to Download


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