[Bioperl-l] Annotation & Feature HOWTO

Paulo Almeida paulo.david at netvisao.pt
Tue May 18 05:45:07 EDT 2004


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
>
>



More information about the Bioperl-l mailing list