CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [nramya82] Very urgent Complicated datastructre and after merging just giving numeric value : Edit Log



Zhris
Enthusiast

Oct 23, 2013, 7:17 PM


Views: 8181
Re: [nramya82] Very urgent Complicated datastructre and after merging just giving numeric value

Hi,

You probably meant:


Code
my @member_lists = @{$soapResponse->result};  
my @memberobjectstatus = @{$soapResponse->result};
push (@member_lists,@memberobjectstatus);
use Data::Dumper;
print Dumper(\@member_lists);


Perl's push function returns the number of elements in the resultant list. This return value isn't useful in your case.

@memberobjectstatus is being pushed into @members_lists, which is your resultant list.

If you don't want to modify @members_lists, use:


Code
push (@member_lists,@memberobjectstatus);  
my @status = (@member_lists,@memberobjectstatus);


Chris


(This post was edited by Zhris on Oct 23, 2013, 7:20 PM)


Edit Log:
Post edited by Zhris (Enthusiast) on Oct 23, 2013, 7:17 PM
Post edited by Zhris (Enthusiast) on Oct 23, 2013, 7:19 PM
Post edited by Zhris (Enthusiast) on Oct 23, 2013, 7:20 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives