Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: File::Find question

by cciulla (Friar)
on Jun 06, 2003 at 19:56 UTC ( [id://263834]=note: print w/replies, xml ) Need Help??


in reply to File::Find question

I may be missing something, but wouldn't

if ($total == 0) { $total = "Error"; } else { $total = sprintf("%0.2f", $total); }
work?

Replies are listed 'Best First'.
Re: Re: File::Find question
by Anonymous Monk on Jun 06, 2003 at 20:08 UTC
    That wouldn't exactly work because sometimes a directory truly may be empty, in which case I want to know that. I am wanting it to print "Error" when there is a problem accessing the files (because of permissions, file is open, etc.). I hope this is a little clearer.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-19 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found