Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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?

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://682263]
[Corion]: The data is the game ;)
[marto]: good morning all
[hippo]: Great slogan :)
[Corion]: Hi marto ;)
[mxb]: Hi all.
[Discipulus]: Hi marto
Discipulus mmh .oO(perl data chess.. 8 scalar, 2 arrays, 2 hashes, 2 refernses, 1 typeglob and atied scalar)

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2018-03-19 09:23 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (236 votes). Check out past polls.