in reply to Pairing values from two arrays
I think you'd really need to tell us why it "chocked".
The only things I can think of is that you're running out of time (browser times out) or memory. If it's time, then you're going to need to convert the data "offline" and store it in a usable form. If it's memory then maybe..
my @x = (3,67,4,2,8,45,23); my @y = (4,7,4,89,6,4,3); my $arrayref = merge(\@x,\@y); undef @y; my @newarray = @$arrayref; undef @x; sub merge{ my ($x,$y) = @_; foreach (@$x){ $_ = '('.$_.','.(shift @$y).')'; } return $x; }
;)
cheers,
J
|
---|