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)
In reply to Re: Subroutine Return?
by jeffa
in thread Subroutine Return?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |