in reply to Re: Logging into multiple devices
in thread Logging into multiple devices

What works best is up to you to decide, of course, since you know your how the rest of your code is organized.

die and eval present a different conceptual model from having functions place error codes in return values; in my experience, they can seriously simplify code -- for instance where the code has long failure-prone flows.