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 | |
by parv (Parson) on Mar 04, 2008 at 12:05 UTC |