in reply to Re: To die or not to die
in thread To die or not to die
Also, use the three-argument form of open as I've said elsewhere in this thread.if (open FH, "<", $file) { # read it and do stuff open FH, ">", $file or die "Failed: $! trying to re-open $file\n"; } else { # do stuff open FH, ">", $file or die "Failed: $! trying to create new $file +\n"; }
Makeshifts last the longest.
|
|---|