csv flat file

2002-01-24 Thread bc
hello i have a flat file (csv) [it has about 114 rows] i want to put the word insert in front of each row, how it the for each writtin? in other words, in perl, how do i do a for each row insert the word insert , then it comes out of the for each loop thingy...?

Re: csv flat file

2002-01-24 Thread Jon Molin
bc wrote: hello i have a flat file (csv) [it has about 114 rows] i want to put the word insert in front of each row, how it the for each writtin? in other words, in perl, how do i do a for each row insert the word insert , then it comes out of the for each loop thingy...? perl

RE: csv flat file

2002-01-24 Thread Timothy Johnson
$line(@infile){ $line = insert .$line; } open(OUTFILE,infile.csv); print OUTFILE @infile; -Original Message- From: Jon Molin To: bc Cc: [EMAIL PROTECTED] Sent: 1/24/02 5:44 AM Subject: Re: csv flat file bc wrote: hello i have a flat file (csv) [it has about 114 rows] i want

RE: csv flat file

2002-01-24 Thread Russ Foster
; Russell J Foster Subject, Wills, Company e. [EMAIL PROTECTED] v. 630-572-0240 -Original Message- From: Timothy Johnson [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 10:30 AM To: 'Jon Molin '; 'bc ' Cc: [EMAIL PROTECTED] Subject: RE: csv flat file What I do when I want

RE: csv flat file

2002-01-24 Thread Timothy Johnson
good point. -Original Message- From: Russ Foster To: [EMAIL PROTECTED] Sent: 1/24/02 8:37 AM Subject: RE: csv flat file Depending on the size of the file, you may not want to read the whole thing into memory first. So... open(OUTFILE,outfile.csv) ; open(INFILE,infile.csv) ; while

RE: csv flat file

2002-01-24 Thread Timothy Johnson
the string at the beginning of the line. -Original Message- From: bc [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 10:56 AM To: Timothy Johnson; 'Jon Molin ' Subject: Re: csv flat file ah, i see your point, and is that a dot ( . ) right before the $line; in the foreach command

Re: csv flat file

2002-01-24 Thread Leon
; Thanks - Original Message - From: bc [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 5:54 AM Subject: csv flat file hello i have a flat file (csv) [it has about 114 rows] i want to put the word insert in front of each row, how it the for each writtin? in other