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

Re: Check Existence of a File

by kelan (Deacon)
on May 06, 2003 at 19:51 UTC ( #256017=note: print w/replies, xml ) Need Help??


in reply to Check Existence of a File

if ( -e "path/to/file" ) { print "File exists, hooray!"; } else { print "I couldn't find the file. Hohum:("; }

kelan


Perl6 Grammar Student

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2022-12-06 20:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?