Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: -e and unlink

by TStanley (Canon)
on Mar 14, 2001 at 03:41 UTC ( [id://64264]=note: print w/replies, xml ) Need Help??


in reply to -e and unlink

To answer your questions:
1. Your understanding of the -e switch is correct. It checks for the existence of a file.
2. According to Programming Perl, 3rd Ed, the unlink function deletes a list of files,
so it does exactly what you think it does.
3. The statement will look for $filename, and delete it if the statement is true.

TStanley
In the end, there can be only one!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-03-29 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found