in reply to Re: Finding names in files
in thread Finding names in files

Thanks duff,

However, I do not understand the following part of your code.

for my $file (@files)

Why are You using $file(@files), could you kindly explain that to me.

Replies are listed 'Best First'.
Re^3: Finding names in files
by SamCG (Hermit) on Mar 29, 2006 at 18:44 UTC


    That syntax puts the default variable (i.e., the array element that he's working on) into $file so he can use that in his loop instead of $_ or $file=$_;

    No muss, no fuss