Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Do you know where your variables are?
 
PerlMonks  

Re: Useless content call in void context

by Anonymous Monk
on May 08, 2012 at 11:08 UTC ( #969416=note: print w/ replies, xml ) Need Help??


in reply to Useless content call in void context

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


Comment on Re: Useless content call in void context
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://969416]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (19)
As of 2013-05-21 14:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (436 votes), past polls