except that the variable should be $!, not $_. $_ won't hold a useful value when the open fails...
In reply to Re^7: LWP - content_cb by Anonymous Monk in thread LWP - content_cb by papaismurf