in reply to Re: Re: Flock, die and statement order
in thread Flock, die and statement order

I guess I misunderstood where warn() outputs to; my apologies. In any case the error message shouldn't be going to the server's error log because it's a message intended for the script's end user.

I guess I'm just not clear why an eval block / die is better than the nested ifs I have. The script code is well commented and traps errors so what is the advantage of using die?