in reply to Unlinking a file when the file doesnt exist
for my $file (qw(files.txt data.txt)) { unlink $file; die "Unable to unlink '$file': $!" if -e $file; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unlinking a file when the file doesnt exist
by cdarke (Prior) on Mar 22, 2011 at 17:19 UTC | |
by ikegami (Patriarch) on Mar 22, 2011 at 19:05 UTC | |
|
Re^2: Unlinking a file when the file doesnt exist
by ikegami (Patriarch) on Mar 22, 2011 at 19:07 UTC | |
by moritz (Cardinal) on Mar 22, 2011 at 21:19 UTC | |
by ikegami (Patriarch) on Mar 22, 2011 at 21:31 UTC | |
by Gulliver (Monk) on Mar 23, 2011 at 15:12 UTC | |
by ikegami (Patriarch) on Mar 23, 2011 at 15:47 UTC | |
|
Re^2: Unlinking a file when the file doesnt exist
by Gulliver (Monk) on Mar 22, 2011 at 18:15 UTC |