[Bioperl-l] Annotation & Feature HOWTO

James Wasmuth james.wasmuth at ed.ac.uk
Tue May 18 05:41:37 EDT 2004


thank you all for clearing that up. I had thought it was some clever bit 
of Perl I hadn't seen before.  <blush>

-james


Paulo Almeida wrote:

> Don't you need a '{' in the foreach loop? And the closing 
> parenthesis,  as in:
>
> foreach my $val ($feat->get_tag_values('gene')){
> if ($feat->has_tag('gene')) {
>
> James Wasmuth wrote:
>
>> Hi Brian,
>>
>> about a third of the way down the page of the Annotation & Feature 
>> HOWTO  is the line.
>>
>> foreach my $val ($feat->get_tag_values('gene')
>> if ($feat->has_tag('gene')) {
>>
>>
>> The parentheses don't add up, and no matter where I put new ones I 
>> get a syntax error
>>
>> near ")
>>                            if"
>>
>> Can someone lift the fog covering my eyes?
>>
>> -james
>>
>>
>> _______________________________________________
>> Bioperl-l mailing list
>> Bioperl-l at portal.open-bio.org
>> http://portal.open-bio.org/mailman/listinfo/bioperl-l
>>
>>
>

-- 
"There are some days when I think I'm going to die from 
an overdose of satisfaction."
	     --- Salvador Dali

Nematode Bioinformatics          |
Blaxter Nematode Genomics Group  |
School of Biological Sciences    |
Ashworth Laboratories            | tel: +44 131 650 7403
University of Edinburgh          | web: www.nematodes.org
Edinburgh                        |
EH9 3JT                          |
UK                               |	



More information about the Bioperl-l mailing list