I want directory structure like this
VEHICLES->CARS
BIKES->
VEHICLES is a main directory CARS is a sub-directory and BIKES is also sub-directory of VEHICLES
we have CARS and BIKES in an array called @files
I am not able to create two sub-directory only one sub-directory is creating inside vehicles$dir= "VEHICLES"; mkdir ($dir); chdir ($dir); foreach $file(@files) { mkdir $file; chdir $file; chdir $dir; }
EXAMPLE: VEHICLES->CARS. Bike is not creating inside VEHICLES
I tried alot but couldnt able to do that please help me to do that
In reply to Directory Structure. by Nansh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |