You get $myArray from your parameters in the second shift, but you never use it, so that array never gets filled. You probably need to change the push statement to
push @$myArray, $path.'/'.$i;, and the recursive call as
&GetDirArray( $path, $myArray );
Dr. Michael K. Neylon - mneylon-pm@masemware.com
||
"You've left the lens cap of your mind on again, Pinky" - The Brain