Re: not grep

2008-04-10 Thread Rob Dixon
Johnson, Reginald (GTI) wrote: > Thanks for the assistance. This is what I ended up doing. The hash is > much faster and I am getting what I require in my two output files. My > mhs file has over 26 columns and is over 27,000 lines. > > #!/usr/bin/perl Always use strict; use warnings; and a

RE: not grep

2008-04-10 Thread Johnson, Reginald (GTI)
;; } } #end while close(INFILE); close(MHSFILE); close(OUTFILE); close(OUTFILE2); -Original Message- From: Jenda Krynicky [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 09, 2008 7:30 PM To: beginners@perl.org Subject: Re: not grep From: "Johnson, Reginald \(GTI\)" &

Re: not grep

2008-04-09 Thread Jenda Krynicky
From: "Johnson, Reginald \(GTI\)" <[EMAIL PROTECTED]> > In my code I am using grep successfully, but I would also like an > output file that has the objects that don't match the grep. I am trying > to capture the $line of my that don't match. > I am thinking something like if ([EMAIL PROTECTED] =

Re: not grep

2008-04-09 Thread Jenda Krynicky
From: Gunnar Hjalmarsson <[EMAIL PROTECTED]> > Johnson, Reginald (GTI) wrote: > > In my code I am using grep successfully, > > But rather inefficient. A hash is a better tool to check for existence; > see the FAQ entry "perldoc -q contained". > > > but I would also like an > > output file that

Re: not grep

2008-04-09 Thread John W. Krahn
Johnson, Reginald (GTI) wrote: In my code I am using grep successfully, but I would also like an output file that has the objects that don't match the grep. I am trying to capture the $line of my that don't match. I am thinking something like if ([EMAIL PROTECTED] = grep/\b$line\b/i,@mhsArray

Re: not grep

2008-04-09 Thread Gunnar Hjalmarsson
Johnson, Reginald (GTI) wrote: In my code I am using grep successfully, But rather inefficient. A hash is a better tool to check for existence; see the FAQ entry "perldoc -q contained". but I would also like an output file that has the objects that don't match the grep. while (

not grep

2008-04-09 Thread Johnson, Reginald (GTI)
In my code I am using grep successfully, but I would also like an output file that has the objects that don't match the grep. I am trying to capture the $line of my that don't match. I am thinking something like if ([EMAIL PROTECTED] = grep/\b$line\b/i,@mhsArray) { } #!/usr/bin/perl use warn

RE: Grep function inside a for loop does NOT grep the values.

2002-02-20 Thread Satya_Devarakonda
McCoy" cc: "Nikola Janceski" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 02/20/2002 04:26 Subject: RE: Grep function inside

RE: Grep function inside a for loop does NOT grep the values.

2002-02-20 Thread Brett W. McCoy
On Wed, 20 Feb 2002 [EMAIL PROTECTED] wrote: > Thank you - it worked. I got my output as expected. But why is '\n' > considered so bad in perl unlike shell scripting. Why did I not get the > output with '\n'. Just curious!!! It's not considered bad, but it can mess up things when you are trying

RE: Grep function inside a for loop does NOT grep the values.

2002-02-20 Thread Satya_Devarakonda
<[EMAIL PROTECTED]> 02/20/2002 10:02 AM cc: [EMAIL PROTECTED] Subject: RE

RE: Grep function inside a for loop does NOT grep the values.

2002-02-20 Thread Nikola Janceski
;, "N015\n"); let us know how it goes. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 9:11 AM To: Nikola Janceski Cc: [EMAIL PROTECTED] Subject: RE: Grep function inside a for loop does NOT grep the values. Thanks guys,

RE: Grep function inside a for loop does NOT grep the values.

2002-02-20 Thread Satya_Devarakonda
[EMAIL PROTECTED] cc: 02/19/2002 05:28 PM Subject: RE: Grep function inside a for loop does NOT grep the

RE: Grep function inside a for loop does NOT grep the values.

2002-02-19 Thread Nikola Janceski
can you give us a snip of what's in @prv_lst @txn_log -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 5:18 PM To: [EMAIL PROTECTED] Subject: Grep function inside a for loop does NOT grep the values. Hi, I am sorry, I mea

Grep function inside a for loop does NOT grep the values.

2002-02-19 Thread Satya_Devarakonda
Hi, I am sorry, I meant to say grep does not work inside a for loop. regards, Satya - Forwarded by Satya Devarakonda/THP on 02/19/2002 05:18 PM -