Re: if loop problem

2009-07-31 Thread Chas. Owens
On Fri, Jul 31, 2009 at 10:58, <98447...@student.ucc.ie> wrote: snip > [HMU09450], [1084175], [1085500], [ c], [putative thiophene snip This shows that your data is not quite what you think it is. This means one (or more) of the following things: 1. the program that is generating the file has a

Re: if loop problem

2009-07-31 Thread Shawn H. Corey
98447...@student.ucc.ie wrote: sample of the outout from perl -nle 'print join ", ", map { "[$_]" } split /\t/'datafile [HMU09420], [1082913], [1083629], [], [putative 1-acyl-SN-glycerol-3-phosphate acyltransferase] [HMU09430], [1083645], [1083860], [], [Putative hypothetical protein] [HMU09440

Re: if loop problem

2009-07-31 Thread 98447122
in, OxaA] [HMU09480], [1087848], [1088201], [ c], [Putative hypothetical protein] - Original Message - From: "Chas. Owens" To: 98447...@student.ucc.ie Cc: "Shawn H. Corey" , beginners@perl.org Subject: Re: if loop problem Date: Fri, 31 Jul 2009 10:38:26 -0400 >On

Re: if loop problem

2009-07-31 Thread Chas. Owens
On Fri, Jul 31, 2009 at 10:19, <98447...@student.ucc.ie> wrote: > This is what the file actually looks like. All fileds are > separated by tabs snip The following script has visibly correct data and works. This points to your data being the problem. Try this one-liner to see what you data really

Re: if loop problem

2009-07-31 Thread 98447122
putative secreted protein HMU0008073757617 c putative membrane protein HMU0009080729076 c UDP-glucose 4-epimerase - Original Message - From: "Shawn H. Corey" To: 98447...@student.ucc.ie Cc: beginners@perl.org Subject: Re: if loop pr

Re: if loop problem

2009-07-31 Thread Shawn H. Corey
98447...@student.ucc.ie wrote: Hi All, I am having a small problem with my if looops. I have written a small script to parse a file I have input: HMU0003025224840DNA gyrase subunit B HMU0004048415083putative membrane protein HMU000505080

if loop problem

2009-07-31 Thread 98447122
Hi All, I am having a small problem with my if looops. I have written a small script to parse a file I have input: HMU0003025224840DNA gyrase subunit B HMU0004048415083putative membrane protein HMU0005050805739c putative perip