Help for this page

Select Code to Download


  1. or download this
        # let array handle context.
        # list of items in list context, count of items in scalar.
    ...
           my( $storage, $pat ) = @_;
           grep /$pat/, $storage->things()
        }
    
  2. or download this
        # list of items in list context, first item in scalar.
        sub matching_things {
    ...
           }
           @things
        }