in reply to Subroutine Return?
Also, you are not passing $uri as a parameter. I would rewrite (and rename) your subroutine to something like:foo(1,2); bar(1,2); sub foo { print pop; print pop } sub bar { print shift; print shift }
Hope this helps. :)sub get_data { my ($name,$value,$uri) = @_; return SOAP::Data->name($name => $value)->type('string')->uri($uri) +; }
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Subroutine Return?
by Anonymous Monk on Dec 20, 2003 at 19:35 UTC |