in reply to recursive mkdir
I have written this script to create directory within directory and have tested it.Its working properly and giving desired output.
for($i=1;$i<=10;$i++)
{
$a = $a."file$i";
$x = `mkdir $a`;
$a = $a."/";
$c = `cd $x`;
print "$c\n";
#$b = $a.$b
}
By Pragya Yadav ; Atish Pradhan and Pramod Kumar