CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [winfinit] Grepping a file in all the files in an array and storing them in a hash: Edit Log



iphone
User

Oct 22, 2010, 6:23 PM


Views: 7232
Re: [winfinit] Grepping a file in all the files in an array and storing them in a hash

Hi Winfinit,

Thanks for the reply.I have modified the above code for the complete code.Basically am getting a file name($file_name) from every line in a file($file) and grepping for the file name in @file_1 and @file_2.

1.Now my problem is i have an array of files "@files" to grep,i have to open every file in @files and grep in every file instead of just 2 files (@file_1 and @file_2)
2.Also,my output has to be be like below


For example,$file_name matches a file X in @files.Output should be

Files matched by X:-
Matched files


(This post was edited by iphone on Oct 22, 2010, 6:28 PM)


Edit Log:
Post edited by iphone (User) on Oct 22, 2010, 6:28 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives