http://www.perlmonks.org?node_id=1009415


in reply to Accessing a folder whose name changes daily

glob for it:
my @candidates = < /path/root/*/filename >;

Replies are listed 'Best First'.
Re^2: Accessing a folder whose name changes daily
by JennieInMI (Acolyte) on Dec 18, 2012 at 17:42 UTC

    Actually did try this and it didn't work for me. Possibly because I am running the script through a VS command prompt? Anyway, found another way to accomplish the task. Thank you though. <\p>

      then, as Jim have already stated below, try using File::Glob bsd_glob directly.