Hmm, I didn't consider it was a bug in Perl, I assumed it was my fault. Also, it's the first time I've come across such a problem, so I wasn't sure of the steps to take. I'll know better next time.
I actually thought I would have to live with the @INC hack until such time as I could clean up my installation. By chance I deleted the BEGIN block and noticed that it worked anyway.
For what it's worth, this is the list of modules I reinstalled (in order of appearance):
I think the problem module is Parallel::ForkManager. CPAN reported it as being up to date, and yet the program continued to emit "Attempt to free" messages. I did a force install and the problem cleared up after that.
But then P::FM appears to be a pure Perl module. Only DBI and DBD::Pg contain XS code (which is what I would expect to cause the problem), and, apart from action-at-a-distance, I don't see what they have to do with the problem of the IO::Socket::INET constructor. Still, stranger things have happened.
In reply to Re:x2 Attempt to free unreferenced scalar: (or how I learnt to stop worrying and love @INC)
by grinder
in thread Attempt to free unreferenced scalar: (or how I learnt to stop worrying and love @INC)
by grinder
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |