Re: retaining first value, joining with the rest of the row values ?

2008-07-12 Thread perez . erasmo
Hi dear Gunnar, Rob, Brad, Ruud, and list: Thank you very much for your great help. It has been an indescriptible experience seeing how more and more elegant ways of achieving my task were being formulated. Indeed a one-time experience. The previous examples just encourage me to learn every time

Re: retaining first value, joining with the rest of the row values ?

2008-07-12 Thread perez . erasmo
Hi Anirban: Thank you for you sugerence, but no, the code is not producing the right output it only produces an unconected pair of numbers, not starting from the first number in the row, but from anyone else regards On 12/07/2008, Anirban Adhikary <[EMAIL PROTECTED]> wrote: > Hi Erasmo Perez >

Re: How to remove [], {}, and other characters, rendering numeric values in a CSV file ?

2008-07-08 Thread perez . erasmo
Hi dear Rob and friends from the list: Thank you very much for your great help. The code is now running flawlessly :-) Thank you very much for your time and shared knowledge Will try to give back a little bit of the much help received in this great community Kind regards Erasmo On 05/07/2008

Re: How to remove [], {}, and other characters, rendering numeric values in a CSV file ?

2008-07-04 Thread perez . erasmo
A la cluster[1] = { 2 3 4 8 10 14 } cluster[2] = { 2 3 4 8 10 14 } ... cluster[1234567] = { 2 3 4 8 10 14 } ... cluster[45689080] = { 2 3 4 8 10 14 } thank you very much On 04/07/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi dear Yitzle and Perl list: > > I have discovered that the nu

Re: How to remove [], {}, and other characters, rendering numeric values in a CSV file ?

2008-07-04 Thread perez . erasmo
Hi dear Yitzle and Perl list: I have discovered that the number between square brackets [] won't be only a one-digit number, but now it can contain an un-foreseen number of digits, because the number inside the square brackets will grow from 1 to several millions As I have just stated, with a one

Re: How to remove [], {}, and other characters, rendering numeric values in a CSV file ?

2008-06-26 Thread perez . erasmo
Hi dear Yitzle: Thank you very much for your great help :-) Your perl code works great ! The problem was indeed from my side, since I was over-confident in the (mis)use of blank space (a beginner sin) But now your code works, thank to your helpful replies and I now i got my a... neck covered A

Re: How to remove [], {}, and other characters, rendering numeric values in a CSV file ?

2008-06-26 Thread perez . erasmo
Hi Yitzle: Thank you very much for your suggestion: Here is my perl file: clusters.pl #! /usr/bin/perl use warnings; use strict; while (my $line = <>) { $line = ~/cluster\[(\d)+\] = {([\d ]+)}/ or die; my @vals = split(/+/,"$1 $2"); print join(",",@vals). "\n"; } my input file (clusters.i

Re: How to remove trailing commas and points from a CSV file ?

2008-06-26 Thread perez . erasmo
Hi dear Yitzle: Thank you very much for you suggestion about the sustitution of the code, required to treat separately the CSV file (from the perl code). It has worked flawlessly :-) Thank you (all) very much Regards On 26/06/2008, yitzle <[EMAIL PROTECTED]> wrote: > On Thu, Jun 26, 2008 at 1:

Re: How to remove trailing commas and points from a CSV file ?

2008-06-26 Thread perez . erasmo
Hi dear Jeff: Thank you very much for your help Yiur script is working flawlessly Just another question: How could I re-write your script in order to treat the __DATA__ portion of your code as an external file ? I happen to have the whole CSV file and I would not want to mix directly with it,