Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: One to Many is Too Many?

by apl (Monsignor)
on Apr 22, 2008 at 20:04 UTC ( #682263=note: print w/ replies, xml ) Need Help??


in reply to One to Many is Too Many?

Hint: You want a hash keyed on the BugID from BUGS.csv

Given that, which file do you think you'd need to read first?

After you've processed the entire first file, how would you process the second file?

After processing the second file, what would you have to do to complete your processing?


Comment on Re: One to Many is Too Many?
Re^2: One to Many is Too Many?
by Roy Johnson (Monsignor) on Apr 22, 2008 at 21:35 UTC
    Considering the desired output, there's only one file that needs to be read.

    Caution: Contents may have been coded under pressure.
      I agree and disagree. You're correct that all necessary information is contained in a single file. However, if I were migrating (as the OP is), I'd want to be able to say "Hey, I found the following Bug_Comments.csv record that does not have an associated Bugs.csv record!".

      There may be more information in the first file that will be merged, but was not not being provided for the sake of brevity. In any event, I'm being pedantic. 8-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-11-27 07:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (180 votes), past polls