perl error messages are easy, just use splain
But the problem with that error message, is it's a LWP error message, probably one you shouldn't ever see
http://search.cpan.org/grep?cpanid=GAAS&release=HTTP-Message-6.03&string=void&i=1&n=1&C=0
Carp::carp("Useless content call in void context") if $^W;
which begs the question, why did you(our program) turn on global warnings, did you want to see that error message?
What you should do, is don't turn on global warnings , don't use -W on the shebang line (see perlrun), or don't turn on $^W
If you want warnings in your program use warnings;
More on this in don't turn on warnings for code you did not write
See also How do I post a question effectively?, Corion on how to report-a-bug, not to ask a question, ask question effectively
In reply to Re: Useless content call in void context
by Anonymous Monk
in thread Useless content call in void context
by qingxia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |