Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: how to check

by balakrishnan (Monk)
on May 23, 2009 at 08:52 UTC ( #765810=note: print w/replies, xml ) Need Help??


in reply to how to check

if (-f $ARGV[0]) { print "file"; } elsif(-d $ARGV[0]) { print "dir"; }
-f option is used to check whether the argument is a file or not.
-d option is used to check whether the argument is a directory or not.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://765810]
help
Chatterbox?
erix soldiering on with just two hemispheres
erix (regularly throttled too - overheating)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (12)
As of 2017-07-27 15:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (418 votes). Check out past polls.