my @status = push (@member_lists,@memberobjectstatus);
From push:
Treats ARRAY as a stack by appending the values of LIST to the end of ARRAY. The length of ARRAY increases by the length of LIST... Returns the number of elements in the array following the completed push.
- push ARRAY,LIST
- push EXPR,LIST
push changes the array and returns the length of the array. What you probably mean is:
my @member_lists = @{$soapResponse->result}; my @memberobjectstatus = @{$soapResponse->result}; my @status = @member_lists; push (@status,@memberobjectstatus); use Data::Dumper; print Dumper(@status);
This copies the list, and then updates it.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In reply to Re: Complicated datastructre and after merging giving numeric value need help!!
by kennethk
in thread Complicated datastructre and after merging giving numeric value need help!!
by nramya82
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |