in reply to Globbing for file in an unkown directory path only works first time in foreach loop?
my $info_desired_filepath = glob('/home/myfiles/day_of_year/'.$day_of_interest.'/data/desired_file.txt');Since you only expect the glob to return 1 file, that line can be simplified as:
my $info_desired_filepath = "/home/myfiles/day_of_year/$day_of_int +erest/data/desired_file.txt";
the code is something like:Show your exact code. Reduce your code sample to narrow your problem down, if need be.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Globbing for file in an unkown directory path only works first time in foreach loop?
by Anonymous Monk on Jan 29, 2016 at 20:57 UTC |