Re: how to implement this with perl

2008-06-26 Thread John W. Krahn
yitzle wrote: On Thu, Jun 26, 2008 at 11:00 AM, Li, Jialin <[EMAIL PROTECTED]> wrote: another way to handle the one line input is to read the whole line at once and then use regex to extract each column __CODE__ #!/usr/bin/perl use strict; use warnings; my $label_file = "label.in"; my $thickne

Re: how to implement this with perl

2008-06-26 Thread John W. Krahn
Li, Jialin wrote: another way to handle the one line input is to read the whole line at once and then use regex to extract each column __CODE__ #!/usr/bin/perl use strict; use warnings; my $label_file = "label.in"; my $thickness_file = "thickness.in"; open my $fp_l, "<", $label_file or die "Ca

Re: how to implement this with perl

2008-06-26 Thread yitzle
On Thu, Jun 26, 2008 at 11:00 AM, Li, Jialin <[EMAIL PROTECTED]> wrote: > another way to handle the one line input is to read the whole line at once > and then use > regex to extract each column > > > __CODE__ > #!/usr/bin/perl > use strict; > use warnings; > my $label_file = "label.in"; > my $thic

Re: how to implement this with perl

2008-06-26 Thread John W. Krahn
vikingy wrote: Hi all, Hello, I have two files,one is label file,another is thickness file, they are one to one correspondence, for example: the label file is : 2 2 3 2 1 3 4 5 2 5 1 4 .. the thickness file is:0.3 0.8

Re: how to implement this with perl

2008-06-26 Thread Li, Jialin
On Thu, Jun 26, 2008 at 9:42 AM, yitzle <[EMAIL PROTECTED]> wrote: > On Thu, Jun 26, 2008 at 8:18 AM, vikingy <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I have two files,one is label file,another is thickness file, they are > one to one correspondence, for example: > > the label file is :

Re: how to implement this with perl

2008-06-26 Thread yitzle
On Thu, Jun 26, 2008 at 8:18 AM, vikingy <[EMAIL PROTECTED]> wrote: > Hi all, > > I have two files,one is label file,another is thickness file, they are one > to one correspondence, for example: > the label file is : 2 2 3 2 1 3 4 5 >2 5 1