Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

My Home Script

by Anonymous Monk
on Jul 07, 2002 at 00:32 UTC ( [id://179904]=perlquestion: print w/replies, xml ) Need Help??

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

Replies are listed 'Best First'.
Re: My Home Script
by vek (Prior) on Jul 07, 2002 at 00:53 UTC
    The problem is, how can I tell if it's a directory or file.
    if (-d $fileFound) { # it's a directory } else { # it's *not* a directory }
    Cheers.

    -- vek --
    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://179904]
Approved by chromatic
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found