in reply to Newbie: parentheses, map, etc.

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).)

Replies are listed 'Best First'.
Re^2: Newbie: parentheses, map, etc.
by ysth (Canon) on Mar 04, 2008 at 06:56 UTC
    That's certainly a matter of opinion. $_ is the default for many builtins, and I, at least, feel free to take advantage of that for convenience, brevity, and readability.
      No arguments here. If -s < $number worked as is, I would not have replied.