I have this code
$newfh = IO::Socket::SSL->start_SSL
( ...);
*STDIN = \*{ $newfh };
*STDOUT = \*{ $newfh };
and it's working fine, hence after session is over, the code
open(STDIN, '</dev/null') || die "Can't read /dev/null [$!]";
complains
Can't locate object method "OPEN" via package "IO::Socket::SSL::SSL_HAND
LE"
OK, my idea is to remember previous STD* references, and restore them before opening the /dev/null ?
Possible? How? Or maybe there's better solution to my problem?
Start Free Trial