in reply to [OT] How to take only the links of files which has high prirority links using perl?
File::Find is one way to search thru a directory structure; use it to find the file with the highest priority. Then just trace down $File::Find::dir, printing the directory contents as you go. Fancy formatting is left as an exercise for the student.
In Section
Seekers of Perl Wisdom