in reply to Grep result in separate lines
print join "\n", grep {(stat)3 > 1} @things;
If you wanted to be clever, you can set the value of the output field separater using the special variable $,:
local $, = "\n"; print grep {(stat)3 > 1} @things;
Beware creating cleverness and long compound statements, as they can make maintenance more difficult than it needs to be.
|
|---|