http://www.perlmonks.org?node_id=340683


in reply to Re: Re: Catching time-outs
in thread Catching time-outs

If you die() or exit () in an eval block, the error goes to $! (or is it $@?) and the eval returns false. It's like Java's try/catch. If you die on not having success you can test for that. If, on the other hand, you mean that LWP::UserAgent is printing to STDERR, and you want to stop it, just redirect STDERR -- i.e. open ("STDERR", "> ./error").


Want to support the EFF and FSF by buying cool stuff? Click here.