I'm rather confused by the perl syntax that I've come across in SOAP::Lite examples, as it doesn't seem to follow any syntax rules that I've come across before.
Many of the SOAP::Lite methods return the object they're given, so the example you gave is equivalent to:
my $o = SOAP::Lite-> uri('http://www.soaplite.com/Demo'); $o->proxy('http://services.soaplite.com/hibye.cgi'); $o->hi(); print $o->result;
but since uri(), proxy() and hi() all return the object they are called on you can chain the method calls and save some typing. Some people like this, and some people don't. See chaining method calls for some discussion.
In reply to Re: Perl syntax question
by adrianh
in thread Syntax used by SOAP::Lite
by smeenz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |