Open jkeenan opened 3 months ago
Thanks for the report. I don't understand the cause of the warning though and why the change would "fix" it. I also cannot reproduce the issue - how can I do this?
Thanks for the report. I don't understand the cause of the warning though and why the change would "fix" it. I also cannot reproduce the issue - how can I do this?
I don't have an answer for that yet. I simply observed the warning in the course of running the program previously described, and then noticed that the statement in question was similar in syntax to the example from perldiag
.
This is similar to the problem addressed in the recently closed https://github.com/noxxi/p5-io-socket-ssl/issues/155.
Isn't it identical? As in, if you upgrade to version 2.088 of IO::Socket::SSL, the cpan warning should disappear.
The code modified in this commit (line 2256),
return(shift->readline()) if wantarray();
is not mentioned in the warning message. (It wouldn't trigger a warning anyway because wantarray
is not a control flow operator, so if wantarray
is fine — unlike if die
, which transfers control and never returns a value.)
This PR has been open for a while.
return ... if
.@array
tests). I'd move it 4 lines up, before @array = $client->getlines;
.
While using
cpan
built with Task::CPAN::Reporter today to install a CPAN library (podlators) and file a CPANtesters report, I observed this warning:This is similar to the problem addressed in the recently closed https://github.com/noxxi/p5-io-socket-ssl/issues/155.
perldoc perldiag
has this to say (excerpt):While looking at the code that triggered the warning, I wondered whether the
croak
statement was being exercised in the test suite. I ran the tests through Devel::Cover and observed that it was not being exercised. So I added a test to detect the exception as the first commit in this pull request. Please review.