in reply to Re: Aggregating Lines from a CSV who lines match a particular field and save those matches based on that matching field name
in thread Aggregating Lines from a CSV who lines match a particular field and save those matches based on that matching field name

Changed OPEN to APPEND instead of overwrite, which seems to be what the OP wants.

He was forced to use append because he reopened the file for every line. There's no evidence either way as to what he wants to do.

  • Comment on Re^2: Aggregating Lines from a CSV who lines match a particular field and save those matches based on that matching field name

Replies are listed 'Best First'.
Re^3: Aggregating Lines from a CSV who lines match a particular field and save those matches based on that matching field name
by Knoperl (Acolyte) on Dec 10, 2008 at 23:04 UTC

    Thank you BOTH so MUCH

    I did want to append so as each time a line was matched the first field, it would be appended to the file if it had already previously been shown to exist

    I am deeply in awed by both of your mastery!

    Netwallah that was also quite sophisticated to fit it into one line.

    I wish to thank you with a haiku. Not that I am a good poet but I will try.

    A haiku to Ikegami:

    Come new winter,

    Code perfect Ikegami’s

    Perl is a beauty

    A haiku to Netwallah

    Perl does flows through you

    Short but cool like a melting

    Icicle in spring

    I will redouble my efforts to learn Perl better. Thank you again SOOOOOOOO MUCH!!!!!