in reply to Re^2: Question regarding perl subroutinein thread Question regarding perl subroutine
$ua is not what you think. It is undefined, probably because the code above lacks error checks. See Basic debugging checklist.
Alexander