I have this Perl code:
use HTTP::Daemon;
use Data::Printer;
my $d = HTTP::Daemon->new(
LocalHost => "localhost",
LocalPort => 8080
) || die;
while (my $c = $d->accept) {
print ref $c;
print $c;
print %{*$c};
p $c;
print $c->sockhost . "\n"
}
The returned object $c is "HTTP::Daemon::ClientConn=GLOB(0x85543d8)". Original code indicates, there is a sockhost member, but I wonder what other members it might have? None of my printing efforts helped. Even meta::CPAN page is silent, but I want a general solution in code to reveal what $c is. For reference, I have Perl v5.12.4.