RE: match an array element

2006-08-16 Thread Smith, Derek
-Original Message- From: Adriano Allora [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 1:21 PM To: beginners@perl.org Subject: match an array element hi all, I need to match any array element in a list of files. More precisely I'd to extract the $. for each match reco

Re: match an array element

2006-08-16 Thread John W. Krahn
Adriano Allora wrote: > hi all, Hello, > I need to match any array element in a list of files. More precisely I'd > to extract the $. for each match recording an hash element like this one: > > $matches{$filename} = $. > > Every file is a list of unique words, so I'm sure there will not be > pr

Re: match an array element

2006-08-16 Thread Rob Dixon
Adriano Allora wrote: > > I need to match any array element in a list of files. More precisely I'd > to extract the $. for each match recording an hash element like this one: > > $matches{$filename} = $. > > Every file is a list of unique words, so I'm sure there will not be > problems. > My actua

match an array element

2006-08-16 Thread Adriano Allora
hi all, I need to match any array element in a list of files. More precisely I'd to extract the $. for each match recording an hash element like this one: $matches{$filename} = $. Every file is a list of unique words, so I'm sure there will not be problems. My actual solution sounds like: