No such thing as a small change | |
PerlMonks |
Re: If unsuccessful action (updated)by 1nickt (Canon) |
on Apr 03, 2020 at 20:23 UTC ( [id://11115005]=note: print w/replies, xml ) | Need Help?? |
Hi, " It seems that if it hits the timeout value in the if eval statement it does not proceed" Well, it does nothing further in the outer if block shown ... impossible to see from what you posted what happens after it. The behaviour is apparently by design because essentially the block says:
I would start by adding an else block to the inner if block and printing some debugging from there if hit. It would be most helpful to print the error message if present; you could just use: ... but I would replace the eval with Try::Tiny as it's so easy to do and so much better. Something like:
Hope this helps! updated: to show better program flow
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|