There is still something a bit strange in this fragment:
value =>bless{ $self ,('compObj')->attr({ 'xsi:type' => 'typens:compOb
+j' })}
There are two issues here. First, you're blessing, into the current package, a hash reference with a single pair in which the key is $self. This makes me a little suspicious because $self is presumably a reference of some sort so I'm not totally clear on what the bless call is supposed to do. The second thing, which is what the error is coming from, is that you're calling the attr method, not on an object, but on the string 'compObj' which makes Perl think that attr is a class method in the package 'compObj', which I suspect is not what you want. Unfortunately I don't know what exactly the result is supposed to be so I can't suggest how to change it. | [reply] [d/l] [select] |
I am sorry. I am new to perl so I'm not familiar with everything yet. Basically, I want to have something like this:
sub makeSandwhich
{
my $lettuce = 'green';
my $bread = 2;
my $sandwhich = "perl equivalent of lettuce and bread in one object";
return $sandwhich;
}
Basically, I am trying to make a complex object, and then return it in perl, so that I can use SOAP to get the object in C#.
| [reply] [d/l] |