The quick fix is to do -f (File::DosGlob::glob qq{"$template_file"})[0] which puts the glob into list context.
In reply to Re: Using File::DosGlob::glob in loop only works first time
by japhy
in thread Using File::DosGlob::glob in loop only works first time
by ff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |