in reply to How to split "/"
my @paths = grep { -d} glob ("/home/temp/login/*"); [download]
That lists the directories in the directory /home/temp/login/ (excluding ones starting with dots), but doesn't split the pathname into its components.