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
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";
>
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)
{