Best (that word again) is to not rely on implicit variables as you are with use of -s function. So pass the file name in $_ to -s: @p = grep { -s $_ < 1 } @q.
(Use of regular expression is overkill just to put simple prefix & suffix around each list element (UURE).)
In reply to Re: Newbie: parentheses, map, etc.
by parv
in thread Newbie: parentheses, map, etc.
by nefigah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |