http://www.perlmonks.org?node_id=179904

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I have a huge problem that is bugging me. First take a look at a screenshot of my script.

Screen Shot

Now see the radio buttons, they are for files and direcotries. Now when the try to edit a file, it edits it. But if they click on edit when a direcotry is selected I want it to move into that direcotry(on my script). The problem is, how can I tell if it's a direcotry or file. Cause what if the file is called a but the directory is called a. And I need to use radion buttons. Any ideas