in reply to Re^2: Unlinking a file when the file doesnt exist
in thread Unlinking a file when the file doesnt exist
Unfortunately, $! is garbage in that example.
From unlink:
Deletes a list of files. On success, it returns the number of files it successfully deleted. On failure, it returns false and sets $! (errno):
One of the examples at the perldoc page for unlink shows using $! with warn() in a foreach loop. Why shouldn't $! be used in this case?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Unlinking a file when the file doesnt exist
by ikegami (Patriarch) on Mar 23, 2011 at 15:47 UTC |