RE: eleminating dupes in a 2-D @list

2003-07-25 Thread Sitha Nhok
--- Sitha Nhok <[EMAIL PROTECTED]> wrote: [snip] > stored into a 2-D array. Then I want to eliminate duplicates in a > column or multiple columns. I came from a C/C++ background, so the only > method I am really familiar with is traversing thru the column comparing > one e

eleminating dupes in a 2-D @list

2003-07-25 Thread Sitha Nhok
Hello: If I have a text file that was in the following form: Header1 Header2 Header3 etc Info1Info2Info3 etc Info1b Info2b Info3b etc Each element is delimited by a tab. Lets say that the information is stored into a 2-D array. Then I want to eliminate duplicates in a column or

Simple question on splice

2003-06-27 Thread Sitha Nhok
Hi, if I have a multidimensional array like : @AoA = ( ["ABC", "BCD"], ["CDE", "DEF"], ["EFG", "FGH"], ); then do: @var = splice @AoA, 2, 1; # to delete the last row print @var; #print what was returned from splice

Matching

2003-06-26 Thread Sitha Nhok
Hi, Is there anyway to match a string in a 2-dimensional array only at one index? For example, say I have this 2-d array: @AoA = ( ["ABC", "BCD"], ["CDE", "DEF"], ["EFG", "FGH"], ); Then I wanted to see if "CD" exist, but only in co

RE: removing a row in a two-dimensional array

2003-06-25 Thread Sitha Nhok
] = {some list}; Delete $array[$x]; #some arbitrary row ~Sitha -Original Message- From: NYIMI Jose (BMB) [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 10:34 AM To: Sitha Nhok; [EMAIL PROTECTED] Subject: RE: removing a row in a two-dimensional array perldoc -f delete http://www.

removing a row in a two-dimensional array

2003-06-25 Thread Sitha Nhok
Hi, I was wondering if someone could help me with a problem I am having. I have a two dimensional array, but I would like to delete an entire row. What is the most efficient way of doing that? I tried using splice, but it only shrinks the number of cols and it doesn't get rid of the entire r