in reply to Re^2: printing the directories...
in thread printing the directories...

Have a look at File::Basename.

Cheers,

JohnGG