Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: selcting a specific file

by mwah (Hermit)
on Oct 22, 2007 at 21:25 UTC ( [id://646586]=note: print w/replies, xml ) Need Help??


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

this:

my @nonempty_files = grep { ! -z $_ } @files;

looks not very trustworthy ;-). This might be wrong. Compare some test schenarios with this approach:

... my @nonempty_files = grep -e && !-z, @files; ...

(especially for non-accessible and non-existent files.)

Regards

mwa

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2024-04-25 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found