Re: how can i get rid of these new line characters?

2002-10-04 Thread John W. Krahn
S Wang wrote: > > i have just started writing some scripts in PERL and i am trying to > catch a deadline, i really wish i could get some help for this problem. > any suggestion is greatly appreciated. > > i have a set of files with sequences aligned in the following format. > i wonder how i can

RE: how can i get rid of these new line characters?

2002-10-04 Thread Bob Showalter
> -Original Message- > From: s wang [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 04, 2002 11:00 AM > To: [EMAIL PROTECTED] > Subject: how can i get rid of these new line characters? > > > > i have just started writing some scripts in PERL and i am >

Re: how can i get rid of these new line characters?

2002-10-04 Thread James Edward Gray II
Oops, forgot those newlines. Need to add the 'chomp' below... On Friday, October 4, 2002, at 10:30 AM, James Edward Gray II wrote: > With something like the script below. (I haven't tested it.) I > assumed the blank lines in the sample data really exist. If they > don't, you'll need to

Re: how can i get rid of these new line characters?

2002-10-04 Thread James Edward Gray II
With something like the script below. (I haven't tested it.) I assumed the blank lines in the sample data really exist. If they don't, you'll need to change it a bit. #!/usr/bin/perl use strict; use warnings; my $long_line = ''; while (<>) { if (/^\s*$/) { print "

Re: how can i get rid of these new line characters?

2002-10-04 Thread Jeff 'japhy' Pinyan
On Oct 4, s wang said: >i have just started writing some scripts in PERL and i am trying to catch >a deadline, i really wish i could get some help for this problem. any >suggestion is greatly appreciated. > >i have a set of files with sequences aligned in the following format. i >wonder how i can

Re: how can i get rid of these new line characters?

2002-10-04 Thread Jeff 'japhy' Pinyan
On Oct 4, s wang said: >i have just started writing some scripts in PERL and i am trying to catch >a deadline, i really wish i could get some help for this problem. any >suggestion is greatly appreciated. > >i have a set of files with sequences aligned in the following format. i >wonder how i can

RE: how can i get rid of these new line characters?

2002-10-04 Thread nkuipers
other file. > >Hope this helps. > >Prachi. > > >Original Message Follows >From: s wang <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: how can i get rid of these new line characters? >Date: Fri, 4 Oct 2002 08:00:19 -0700 (PDT) > > >i have just s

Re: how can i get rid of these new line characters?

2002-10-04 Thread Prachi Shah
. Original Message Follows From: s wang <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: how can i get rid of these new line characters? Date: Fri, 4 Oct 2002 08:00:19 -0700 (PDT) i have just started writing some scripts in PERL and i am trying to catch a deadline, i really

how can i get rid of these new line characters?

2002-10-04 Thread s wang
i have just started writing some scripts in PERL and i am trying to catch a deadline, i really wish i could get some help for this problem. any suggestion is greatly appreciated. i have a set of files with sequences aligned in the following format. i wonder how i can eliminate the new line ch