http://www.perlmonks.org?node_id=422537


in reply to Re: boolean IN(); function in perl like
in thread boolean IN(); function in perl like

One word of caution when using grep -- it will find all occurrences of $e in @a so if @a is large or there are a lot of occurrences of $e it will take longer than just looking for the first occurrence. You might also want to look at the any function in List::MoreUtils.
  • Comment on Re^2: boolean IN(); function in perl like