Re: Multi-dimensional arrays and subroutines

2002-07-17 Thread Jeff 'japhy' Pinyan
On Jul 17, Ho, Tony said: > $sth->bind_param(1, @$_->[0]); You've already fixed your problem, so that's good, but I would use $sth->bind_param(1, $_->[0]); instead of $sth->bind_param(1, @$_->[0]); Yours works by some bizarre coincidence of Perl's parsing. It should be considere

RE: Multi-dimensional arrays and subroutines - PLEASE IGNORE PREVIOUS EMAIL

2002-07-17 Thread Ho, Tony
gt; Sent: Wednesday, July 17, 2002 11:43 AM > To: '[EMAIL PROTECTED]' > Subject: Multi-dimensional arrays and subroutines > > Hi Guys > I was wondering if you could help me. > > I have a multi-dimensional array and I would like to pass it to a > sub

Multi-dimensional arrays and subroutines

2002-07-17 Thread Ho, Tony
Hi Guys I was wondering if you could help me. I have a multi-dimensional array and I would like to pass it to a subroutine as follows : my @multi_array = ([1,2,3,4], [5,6,7,8]); my @result = process_array(@multi_array); print "The result is : @result\n"; sub process_array { my @array_pro