Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Getting Data Names in SOAP::Lite

by edoc (Chaplain)
on Jan 19, 2005 at 01:51 UTC ( [id://423243]=note: print w/replies, xml ) Need Help??


in reply to Getting Data Names in SOAP::Lite

hmm.. do you mean like:

sub procedure1{ my %parameters = @_; my $var1 = $parameters{var1}; my $var2 = $parameters{var2}; } procedure1( var1 => 'value', var2 => 'value2' );

cheers,

J

Replies are listed 'Best First'.
Re^2: Getting Data Names in SOAP::Lite
by rdfield (Priest) on Jan 19, 2005 at 10:13 UTC
    In my experience, you'd need to change that slightly:
    sub procedure1{ my $class = shift; my %parameters = @_; my $var1 = $parameters{var1}; my $var2 = $parameters{var2}; } procedure1( var1 => 'value', var2 => 'value2' );
    Note the extra shift in the definition of procedure1.

    rdfield

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found