Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

RE: RE: RE: opening a file

by kilinrax (Deacon)
on Oct 31, 2000 at 23:01 UTC ( [id://39310]=note: print w/replies, xml ) Need Help??


in reply to RE: RE: opening a file
in thread opening a file

This script will check the files you named to see that they all exist, are readable by the script, and are not empty.
Hopefully, running it will help you pinpoint the problem.
#!/usr/bin/perl -w use strict; my @files = ("/mnt/csphil/home/fburns/domereports/Weekly_Reports/de-nj +-md", "/mnt/csphil/home/fburns/domereports/Weekly_Reports/pa_only", " +/mnt/csphil/home/fburns/domereports/Weekly_Reports/phila_market"); my $file; foreach $file (@files) { if (! -e $file) { warn "$file does not exist"; next; } warn "$file is unreadable" unless -r $file; warn "$file has zero size" if -z $file; }

Log In?
Username:
Password:

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

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

    No recent polls found