So, YES grep{} is meant to process/filter lists! I would argue that putting this push statement inside the grep is a weird thing to do.
Obviously processes/filters lists. Obviously a weird thing to do. Jethro said grep also works on arrays, not just lists, and I was demonstrating that it only works on lists.
In reply to Re^4: (Mis)Understanding <c>grep...eq $_<c>
by ikegami
in thread (Mis)Understanding grep...eq $_
by ww
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |