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 |