develooper Front page | perl.beginners | Postings from March 2002

appending to rows

Thread Next
From:
Ho, Tony
Date:
March 1, 2002 04:49
Subject:
appending to rows
Message ID:
17BB19F31428D411B3CC0090279A312802C9867D@lon-exch2.kenan.com
Hi guys
I was wondering if you could help me
 
I have 2 files.
One file has 3 data rows, A, B and C
The file has 1 data row D.
 
I need to append row D to rows A and C in the first file, based on some
condition.
Any ideas how I could go about this ?
 
Another alternative would be for me to open up a new file and write
row 1 : AD
row 2 : B
row 3 : CD
 
Is the second approach better in terms of performance than the first
approach as I will have more than 1 million rows to deal with ?
 
Thanks in advance
Tony
 
 

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About