I need to write a scoop in PERL that stores all directories (UNIX machine) as an array, then renames them to "pull_<dir_name>. The problem is, the working dirtectory contains both directories and files. How can I obtain a list of ONLY the directories? ls -lrt | grep ^d works, but it also returns other useless information.
Thanks in advance!
Thanks in advance!