Possibly a FAQ, but is there a simple way of asking if an item is
contained in an array?  I know of $x ~~ any(@array) and @array.grep({
$_ ~~ $x}), but those both seem a bit complicated for a conceptually
simple test, so I'm wondering if I'm missing something.  In other
langs there's a keyword [item in array] or specific method
[array.include? item] or function [in_array($item, $array)]...

Mark J. Reed <markjr...@gmail.com>

Reply via email to