If you have:
Category_One/SubCategory_One
Category_One/SubCategory_Two
Category_One/SubCategory_Three
...then the desired output is:
SubCategory_One
SubCategory_Two
SubCategory_Three
...but if my analysis of your code is correct, then it certainly won't do that.
If $Full_Name was "Category_One" then @levels would be 1 and so the output would be:
Category_One
It doesn't select any sub-categories to list them.
Category_One/SubCategory_One
Category_One/SubCategory_Two
Category_One/SubCategory_Three
...then the desired output is:
Code:
Category_One SubCategory_One
SubCategory_Two
SubCategory_Three
...but if my analysis of your code is correct, then it certainly won't do that.
If $Full_Name was "Category_One" then @levels would be 1 and so the output would be:
Category_One
It doesn't select any sub-categories to list them.