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) {
        chomp;
        my @string = split(/,/, $line);
        if (@string[0,1] eq "" ) {
                next;
        } else {
                $copy_data = $string[0];
                $string[34] = $copy_data;
                push (@output, "@string");
                print "Line $count parsed with FIRST -> $string[0] and
LAST -> $string[34]\n";
        }
        $count++;
}

__end_snip__


Scott Lutz
technical support
Pacific Online
http://www.paconline.net



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

Reply via email to