in reply to Logging into multiple devices

Thank you for the replies, "eval" will come in handy. I should have known that. I just found another answer, $t->errmode("return"); also does the trick.

Replies are listed 'Best First'.
Re^2: Logging into multiple devices
by gaal (Parson) on Oct 26, 2004 at 18:24 UTC
    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.