http://www.perlmonks.org?node_id=338839

cLive ;-) has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to send a hashref as an argument to a SOAP server. I'm dumping the args to a log on the server and they look fine, but I get a warning when running the client:
Cannot encode 'hashref' element as 'hash'. Will be encoded as 'map' in +stead
And, here's the weird bit. I was just running an adapted sample from the docs that begins with:
#!perl -w
When I change this to:
#!/usr/bin/perl use strict; use warnings;
the warning disappears.

Is there a difference between the -w switch and the "use warnings" pragma?

confused...

cLive ;-)

ps - I'm running these as "perl script.pl" rather than "./script.pl"