Re: Uniq'ing an array (previously Re: Search matching problems)

2001-10-30 Thread Jeff 'japhy' Pinyan
On Oct 30, Robert Thompson said: > Another question though, is there a simple way to uniq an array, >ie search through it and removing all duplicates? Up until now I have >been making a clumsy subroutine to do this, but I am wondering if there >is something more simple that will handle this

Uniq'ing an array (previously Re: Search matching problems)

2001-10-30 Thread Robert Thompson
Thanks that worked and was the simple solution I was looking for. Another question though, is there a simple way to uniq an array, ie search through it and removing all duplicates? Up until now I have been making a clumsy subroutine to do this, but I am wondering if there is som

Re: Search matching problems

2001-10-29 Thread Andrea Holstein
Robert Thompson wrote: > ... > > for (my $i = 0; $i < @mess_order; ++$i) { > if ($mess_order[$i] =~ /^$remove$/i) { > $pos = $i; > } > } > > ... > There are about eighty e-mails that I am testing with, and all the ones that have >the problem are ones with a $ in the Message-ID

Search matching problems

2001-10-29 Thread Robert Thompson
Hello I am writing a script that will look through e-mail headers and input information into a database bases on some rules. I am using the Message-ID field in the mail header as input for some of the fields and am having problems with pattern matching since some of the characters in t