Q: Using splice on a matrix

2001-03-13 Thread Moulder, Glen
Good day perlfolk, I often work with data matrices (lists of lists) in my scripts. A simple example is: @matrix = (); @list1 = ("one","two","three"); @list2 = ("four","five","six"); @list3 = ("seven","eight","nine"); @list4 = ("ten","eleven","twelve"); push @matrix, [ @list1 ]; push @matrix, [

Re: Q: Using splice on a matrix

2001-03-13 Thread Ron Grabowski
$row_elements = $#list4; splice(@new_list,0,$row_elements,splice(@matrix,2,$row_elements)); Why not make a function called remove_row() which accepts a reference to a matrix, and a row to delete. You've already written the code for it... ___

Re: Using splice on a matrix

2001-03-13 Thread Sisyphus
- Original Message - From: Moulder, Glen [EMAIL PROTECTED] To: 'perl-win32-users' [EMAIL PROTECTED] Sent: Wednesday, March 14, 2001 7:46 AM Subject: Q: Using splice on a matrix Good day perlfolk, I often work with data matrices (lists of lists) in my scripts. A simple example