not ($_+1) % 3
Will always evaluate to false as it is the same as
(not ($_+1)) % 3
Adding some parens in the right places
not (($_+1) % 3)
Should give the correct result
In reply to Re: Re: Re: Re: Elegantly Selecting Every 3rd Element in an Array.
by gbarr
in thread Elegantly Selecting Every 3rd Element in an Array.
by jerrygarciuh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |