Re: output into a csv file

2001-12-19 Thread John W. Krahn
"Scott.Lutz" wrote: > > This is getting a touch off base from where I wanted to go, but the jist > of what I started with is this. > Open a .csv file, enter every record into the array, one at a time, then > copy the first value to the third last value, then print this value back > to a new .csv

RE: output into a csv file

2001-12-19 Thread scott.lutz
---- From: John W. Krahn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 4:35 PM To: [EMAIL PROTECTED] Subject: Re: output into a csv file Jenda Krynicky wrote: > > But don't ever forget to reset it back! : > > { local $, = ", "; > prin

Re: output into a csv file

2001-12-18 Thread John W. Krahn
Jenda Krynicky wrote: > > But don't ever forget to reset it back! : > > { local $, = ", "; > print @output; > } > > IMHO using join() is safer. I'd only use something like this if I > needed to interpolate several arrays in a HERE-DOC string. I'd > change $" then of cour

RE: output into a csv file

2001-12-18 Thread Jenda Krynicky
From: Carl Rogers <[EMAIL PROTECTED]> > At 02:18 PM 12/17/2001 -0800, Scott Lutz wrote: > >I was looking for more of a way to print out the array, with > >inserting a comma (,) between every array value, like while ( @output > >) { > > print $output[position] ."," > >} > > You can also as

RE: output into a csv file

2001-12-17 Thread Carl Rogers
At 02:18 PM 12/17/2001 -0800, Scott Lutz wrote: >I was looking for more of a way to print out the array, with inserting a >comma (,) between every array value, like >while ( @output ) { > print $output[position] ."," >} You can also assign the special variable "$," the value "," and it wi

RE: output into a csv file

2001-12-17 Thread Jenda Krynicky
From: "Scott Lutz" <[EMAIL PROTECTED]> > I was looking for more of a way to print out the array, with inserting > a comma (,) between every array value, like while ( @output ) { > print $output[position] ."," > } > > or something like that, > I just figure that there would be

RE: output into a csv file

2001-12-17 Thread Scott Lutz
rt Pacific Online http://www.paconline.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: December 17, 2001 1:35 PM To: Scott Lutz; [EMAIL PROTECTED] Subject: RE: output into a csv file Scott, I've found the AnyData module (search CPAN for AnyData) to b

RE: output into a csv file

2001-12-17 Thread John . Brooking
er, w/commas, and ""quotes""" Make sense? Couldn't tell you what the code looks like for parsing. - John -Original Message- From: Scott Lutz [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 3:05 PM To: Beginners (E-mail) Subject: output into a csv f

output into a csv file

2001-12-17 Thread Scott Lutz
here is a snip of code that opens a .csv file, massages some of the data a bit, and then writes it back to a new .csv file. The problem is that I can't figure a quick way to print out with commas where they should be. Some suggestions would be great! __snip__ foreach $line (@data) { cho