Skip Menu |

This queue is for tickets about the Bio-GenBankParser CPAN distribution.

Report information
The Basics
Id: 93413
Status: new
Priority: 0/
Queue: Bio-GenBankParser

People
Owner: Nobody in particular
Requestors: popnard [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Possible bug or my mistake
Date: Thu, 27 Feb 2014 17:52:58 +0100
To: bug-Bio-GenBankParser [...] rt.cpan.org
From: Bernardo Bello <popnard [...] gmail.com>
Module is installed, but I have this error message: 'syntax error at /Users/bernardo/Documents/BioLinux/A0_scripts/parse_gbk_2.pl line 13, near "say join" Execution of /Users/bernardo/Documents/BioLinux/A0_scripts/parse_gbk_2.pl aborted due to compilation errors.' Thanks. Here is the code I used. Seems to be happening with any GenBank file use strict;use warnings;use feature 'say';use Bio::GenBankParser; my $file = shift;my $parser = Bio::GenBankParser->new( file => $file );while ( my $seq = $parser->next_seq ) { my $feat = $seq->{'FEATURES'}; for my $f (@$feat) { my $tag = $f->{'feature'}{'locus_tag'}; my $prod = $f->{'feature'}{'product'}; if (defined $tag and defined $prod) { say join "\t", $tag, $prod; } }} -- *Bernardo Bello Ortí* PhD student CReSA-IRTA Campus de Bellaterra-Universitat Autònoma de Barcelona Edifici CReSA 08193 Bellaterra (Barcelona, Spain) Tel.: 647 42 52 63 *www.cresa.es <http://www.cresa.es> *

Message body is not shown because it is too large.