Li, Aiguo (NIH/NCI) <[EMAIL PROTECTED]> wrote:

: Hello, all.
: 
: I need to merge two files according a id list in each file.
: What I am trying to do is to have a sub routine that get
: the id from data file 1 as key for a hash, a second sub
: routine to put the value from data file 1 into the hash,
: then while reading in the data file 2 using the while loop,
: match the hash key to the id for each line, if it match
: print the $_ and $key => $value from the hash.
: 
: I am not sure whether my logic is right or not here and am
: having trouble in achieving my second goal -- fill data
: into hash--.  Could anyone see what is wrong?

    Is this code complete? If not show all your code.

    If it is, you need to read 'perlopentut' to find out how
to read files in perl.


HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
254 968-8328


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to