In that case try adding (). I think your problem is that glob in a scalar context, makes it act as an iterator:
pojmy ($info_desired_filepath) = glob('/home/myfiles/day_of +_year/'.$day_of_year.'/*/desired_file.txt');
In reply to Re^7: Globbing for file in an unkown directory path only works first time in foreach loop?
by poj
in thread Globbing for file in an unkown directory path only works first time in foreach loop?
by MarsRover
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |