I've already seen many examples, so I shall not touch on foreach.

The Map function could do the work too assuming memory is not a problem.
However I am not too sure if I got the following short cut correct :-

open FILE, 'data.txt' or die "$!\n";
print (map "InsertYourText $_",<FILE>);
close FILE;

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 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...?



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to