[EMAIL PROTECTED] wrote: > I am trying to send the output of a mysql query to a two dimensional > array. > > This is what I've tried using push. > > while (@results = $sth->fetchrow_array ()) > { > $x = $results[0]; > $y = $results[1]; > push (@data,[$x],[$y]);
push( @data, [ $x , $y ] ); Access would be for first 0,0, 0,1, 1,0,1,1, etc Wags ;) > } > > However, I don't get back a two dimensional array, I get back a single > array of @data. > > Thanks. -Aaron ******************************************************* This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. ******************************************************* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>