$spec = 'c:/abc/*'; while (glob($spec)) { print; } [download]
In reply to Re: Passing dynamic variable inside <> by ikegami in thread Passing dynamic variable inside <> by Anonymous Monk