in reply to Passing dynamic variable inside <>

$spec = 'c:/abc/*'; while (glob($spec)) { print; }

Replies are listed 'Best First'.
Re^2: Passing dynamic variable inside <>
by Anonymous Monk on Nov 04, 2004 at 05:28 UTC
    Thank you very much
    It worked!!!!!!!!!!!!!
    I used following
    $currentpath='c:/abc/*';
    foreach (glob($currentpath))
    {
    print;
    }