in reply to Query regarding LWP

Just a suggestion (i'm really not an expert): IO::Socket is a IO::Handle and as all handles it autoclose when it goes out of scope and in other circumstances too (filehandle have close on exec: see perlipc ).
In general sense, Perl does a lot of kind things for you, behind the scenes, garbage collection is one of theese.

L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Query regarding LWP
by albus123 (Novice) on Jun 23, 2015 at 21:43 UTC
    Thanks for the response. Is there a way to confirm if it is the garbage collector that is performing the socket close in this scenario? I know the specific routine where the close seems to be happening. Any other information that can help confirm the same would be great. Thanks.