"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
----
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
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
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
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
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
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
Scott,
I've found the AnyData module (search CPAN for AnyData) to be great for CSV.
It can read and write CSV or XML, either tied to hash variables or through a
DBI interface, as well as reading and writing to HTML tables. I've noticed
that it uses the following rules for CSV:
* If field to wr