http://qs321.pair.com?node_id=707254


in reply to Re: greater efficiency required (ls, glob, or readdir?)
in thread greater efficiency required (ls, glob, or readdir?)

|| !length($_) (Upd: or better yet || !/\S/ ) would be the solution.

|| is fine. It's being used to join expressions, not statements.