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

2002-02-20 Thread Jenda Krynicky
Subject:Grep function inside a for loop does grep the values. To: [EMAIL PROTECTED] BCC to: From: [EMAIL PROTECTED] Date sent: Tue, 19 Feb 2002 17:13:00 -0500 > Can somebody help me on what is wrong in

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

2002-02-19 Thread Brett W. McCoy
On Tue, 19 Feb 2002 [EMAIL PROTECTED] wrote: > Can somebody help me on what is wrong in the following piece of code? > > foreach (@prv_lst) > { > $item = $_; > @list_prv = grep (/$item/, @txn_log); > print "The foll. are the Txn details for Trading Partner $item \n"; >

Grep function inside a for loop does grep the values.

2002-02-19 Thread Satya_Devarakonda
Can somebody help me on what is wrong in the following piece of code? foreach (@prv_lst) { $item = $_; @list_prv = grep (/$item/, @txn_log); print "The foll. are the Txn details for Trading Partner $item \n"; print @list_prv; for (@txn_lst) {