in reply to Passing dynamic variable inside <>

See the standard module File::Glob.

You do mean glob, right? Not <> in the sense of readline?)