Re: array searching

2007-01-14 Thread John W. Krahn
Jim Canon wrote: > > On 1/14/07, John W. Krahn <[EMAIL PROTECTED]> wrote: >> >> Jim Canon wrote: >> > >> > Thank you very much for the response, it has helped me begin to >> > understand how regular expressions work. I see that /(\d+)$/ >> > matches the numbers until the end of line in >> > >> >

Re: array searching

2007-01-14 Thread Jim Canon
By numbers in front I am referring to word1 word2 job2006 in the element: word1 word2 job2006 three four five six community job555 It seems that /(\d+)$/ matches word1 word2 job2006 job555 I was reviewing http://perldoc.perl.org/perlre.html but am having trouble determining the best way to match j

Re: array searching

2007-01-14 Thread John W. Krahn
Jim Canon wrote: > > Thank you very much for the response, it has helped me begin to understand > how regular expressions work. I see that /(\d+)$/ matches the numbers > until the end of line in > > @job1 = qw( > job555 > job572 > job8433 > job873 > job594 > job4663 > job2221 > job2223 >

Re: array searching

2007-01-12 Thread Rob Dixon
Jim Canon wrote: > Hi, > > This is my first question, I appreciate any information you provide. I want > to compare the numbers after : in @jn to the numbers after job in @job1 and > @job2. > > > @jn = > JN.2007:555 > JN.2007:8433 > JN.2007:594 > JN.2007:111 > JN.2007:4663 > JN.2007.321 > JN.2007:

Re: array searching

2007-01-11 Thread John W. Krahn
Jim Canon wrote: > Hi, Hello, > This is my first question, I appreciate any information you provide. I want > to compare the numbers after : in @jn to the numbers after job in @job1 and > @job2. > > [ snip ] > > I want to put what is missing in @jn compared to @job1 and @job2 in > @jobMissing :