Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: selcting a specific file

by blazar (Canon)
on Oct 24, 2007 at 14:35 UTC ( [id://646898]=note: print w/replies, xml ) Need Help??


in reply to Re: selcting a specific file
in thread selcting a specific file

@files = grep { -s and -f} @files;

I personally believe that this is fine, but to avoid a double stat one would better

@files = grep { -s and -f _} @files;

Of course it would be nice to also have chained -X's, and IIRC 5.10 has them.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://646898]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-23 16:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found