Ah, I see. Yes, that had eluded me.

> Here you are flattening the @$record into @toparray.  If you 
> wanted to keep the nested array structure, you would have to 
> push the array reference instead:
> 
>       push @toparray, $record;
> 
> Or if for whatever reason you must create a copy of the data (e.g.
> you want to modify it later, but keep the original intact), 
> then you put the copied values into an anonymous array and push that:
> 
>       push @toparray, [@$record];
> 
>     print @$record, "\n";
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to