@pathparts should be transformed intomy @pathparts = split(/\//, "/dir1/dir2/dir3/file1"); my %hash;
thank you,$hash{"dir1"}{"dir2"}{"dir3"}{"file1"}
In reply to transform array into a data structure by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |