Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Opening a File If It Exists

by The Mad Hatter (Priest)
on Jul 21, 2004 at 17:15 UTC ( [id://376324]=note: print w/replies, xml ) Need Help??


in reply to Opening a File If It Exists

Test for existance using the -e operator. See perldoc -f -X for more info. For example:
if (-e "some_file") { # do your thing }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-03-28 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found