Perl 中的 Bioperl 测试错误
这里是新手,我正在尝试在 perl 环境中使用 Bioperl 模块。我的配置是
- Windows Vista/32
- Active Perl 5.10.1
- Bioperl 1.6.1
- Padre 和 Per Studio 2010 IDE
对于安装指南,我浏览了 BioPerlWiki并使用PPM方法。我安装成功了。
为了检查 Bioperl 是否正常工作,我进一步遵循:
use Bio::Perl; // Is working without error
但是当我尝试进行进一步检查时,例如“
#!C:\Perl\bin
use Bio::Perl;
use strict;
$seq_object = get_sequence('swissprot',"ROA1_HUMAN");
write_sequence(">roa1.fasta",'fasta',$seq_object);
然后我收到错误”,
Global symbol "$seq_object" requires explicit packages name at c:\.......\example.pl line 4
Global symbol "$seq_object" requires explicit package name at c:\........\example.pl line 5
Execution of C:\...... \example.pl aborted due to compilation erros
我进入了 c:\perldoc Bio::Perl
并知道它的用途,更多我也尝试通过谷歌找出错误,但不知道出了什么问题。
我知道 Perl 和 bioperl 也在系统路径中。谁能指出我犯过哪些愚蠢的错误?
也会向bioperl邮件列表询问,但我知道他们的回复不像stackoverflow那么快
谢谢
Newbie here, I am trying to use Bioperl module in the perl environment. My configuration are
- Windows Vista/32
- Active Perl 5.10.1
- Bioperl 1.6.1
- Padre and Per Studio 2010 IDE
For the installation guideline I went through BioPerlWiki and used PPM method. I installed it successfully.
To check whether Bioperl was working I futher followed:
use Bio::Perl; // Is working without error
But when I tried to do futher checking like
#!C:\Perl\bin
use Bio::Perl;
use strict;
$seq_object = get_sequence('swissprot',"ROA1_HUMAN");
write_sequence(">roa1.fasta",'fasta',$seq_object);
Then I am getting error
Global symbol "$seq_object" requires explicit packages name at c:\.......\example.pl line 4
Global symbol "$seq_object" requires explicit package name at c:\........\example.pl line 5
Execution of C:\...... \example.pl aborted due to compilation erros
I went to the c:\perldoc Bio::Perl
and know it's uses, further more I tried to trace out errors through google too but dont know what's wrong.
I am aware of Perl and bioperl to be in system path too. Can anyone point me out what stupid mistakes I have been doing?
Will ask to bioperl mailing list too, but I know their reponse is not so fast like stackoverflow
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 diagnostics 编译指示来扩展 Perl 发出的诊断信息:
这将为您提供详细的解释:
You can use the diagnostics pragma to extend the diagnostics emitted by Perl:
This will provide you a verbose explanation: