Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Content of one file to another file if a filed matches

by madtoperl (Hermit)
on Mar 09, 2017 at 11:12 UTC ( [id://1184020]=note: print w/replies, xml ) Need Help??


in reply to Content of one file to another file if a filed matches

You may try with below hint,
1. Read the first file line by line and keep the Alphabet (A) and its +rest of the values(Rahul 30 27) in a hash with key/pair value. 2. Read the second file line by line and split the Alphabet and its va +lue. 3. Check if the alphabet in step 2 is available in hash formed in step + 1. If yes, print the hash key, value and second file value in new fil +e (third file).

Replies are listed 'Best First'.
Re^2: Content of one file to another file if a filed matches
by sm81 (Initiate) on Mar 09, 2017 at 13:34 UTC
    Thanks.. let me try ..

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1184020]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-24 06:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found