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

Re: Re: checking file size

by merlyn (Sage)
on Apr 19, 2001 at 17:16 UTC ( #73809=note: print w/replies, xml ) Need Help??


in reply to Re: checking file size
in thread checking file size

print "removing $_\n"; unlink;
I'd change that to:
print "removing $_: "; print unlink $_ ? "$!\n" : "ok\n";
Otherwise you'll never know what went wrong.

-- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2020-08-04 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (31 votes). Check out past polls.

    Notices?