in reply to file not found with OPEN

Try putting the file name into another string, then printing that string to the STDERR log file.   Let the program tell you what it is doing.

my $debugging = 1; my $filename = "$inddirect/company$qtr$yr.idx"; print STDERR "Opening '$filename'\n" if ($debugging); open(INPUT, $filename) || die "can't open '$filename'"; print STDERR "'$filename' opened successfully\n" if ($debugging);

Replies are listed 'Best First'.
Re^2: file not found with OPEN
by wrkrbeee (Scribe) on Jan 06, 2015 at 19:08 UTC
    I added "C:" prior to the directory spec which solved the problem. I am grateful for your time and patience! Apologize for wasting your time!!