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
>
Erasmo Perez wrote:
I would like to know how could I transform the following CSV file:
1,2,3,4,5,6
2,3,4,6,7,8,9
3,876,986,876,765
...
987,983,654,990,654
989,876,234,56,67
into the following CSV file:
1,2
1,3
1,4
1,5
1,6
2,3
2,4
2,6
2,7
2,8
2,9
3,876
3,986
3,876
3,765
...
987,983
987,654
987,
I have attempted to unsubscribe from this list appx 20 times over the past
year. I would appreciate it if the owner or mods of this list would
unsubscribe me, please.
Thank you.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://l
Please read the FAQ item carefully below, thank you.
(http://learn.perl.org/faq/beginners.html)
1.2 - How do I unsubscribe?
Now, why would you want to do that? Send mail to
<[EMAIL PROTECTED]>, and wait for a response. Once you
reply to the response, you'll be unsubscribed. If that doesn't work,
Erasmo Perez wrote:
>
> I would like to thank you for all the support I have received from you
> in my last couple of questions.
>
> But here is another question:
>
> I would like to know how could I transform the following CSV file:
>
> 1,2,3,4,5,6
> 2,3,4,6,7,8,9
> 3,876,986,876,765
> ...
>
oryann9 wrote:
Subject: sysread, sysseek, sysopen
Are any of these calls deprecated or not recommended?
Does "perldoc perlfunc" say anything about it? If not, they are not
deprecated.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PRO
Erasmo Perez wrote:
> I would like to know how could I transform the following CSV file:
...
> 1,2,3,4,5,6
...
> into the following CSV file:
...
> 1,2
> 1,3
> 1,4
> 1,5
> 1,6
Gunnar Hjalmarsson wrote:
> while (<>) {
> chomp;
> my ($first, @rest) = split /,/;
> print "
Brad Baxter schreef:
> perl -F, -lane'print"$F[0],$F[$_]"for 1..$#F;' data
perl -F, -lane'print"$F[0],$_"[EMAIL PROTECTED]' data
perl -pe'1while s/^((.*?),.*),/$1\n$2,/' data
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
Dr.Ruud wrote:
> Brad Baxter schreef:
>
>> perl -F, -lane'print"$F[0],$F[$_]"for 1..$#F;' data
>
> perl -F, -lane'print"$F[0],$_"[EMAIL PROTECTED]' data
>
> perl -pe'1while s/^((.*?),.*),/$1\n$2,/' data
Very nice.
You can also drop the ^ at the start of your regex.
Rob
--
To unsubscrib
> "luke" == luke devon <[EMAIL PROTECTED]> writes:
luke> How can we define NULL values in perl ? for instance if I wanted to
luke> assign a NULL value for a variable called "$x= , how would it be in the
luke> code ?
Perl doesn't have NULL. That'd be like saying "how do I make this pig fly?".
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
11 matches
Mail list logo