in reply to Re: Counting matches and removing duplicates
in thread Counting matches and removing duplicates

You have advocated using grep in a void context. Please explain why.


🦛

  • Comment on Re^2: Counting matches and removing duplicates

Replies are listed 'Best First'.
Re^3: Counting matches and removing duplicates
by soonix (Chancellor) on Nov 17, 2024 at 10:49 UTC
    he overlooked that the snippet was the inside of a subroutine, where the grep result would serve as the return value.
    But at least he gave a credible citation (although he could've cited should've read the PerlFAQ 4 section directly), so I ++ anyway.