[Bioperl-l] Problem in using BioPerl module through Strawberry Perl Professional 5.10.1.3 alpha 2

Joel Martin j_martin at lbl.gov
Tue Jan 18 16:54:08 UTC 2011


and given their good advice, the answer is...

change
 $seq_object = get_sequence('swissprot',"ROA1_HUMAN");
to
my $seq_object = get_sequence('swissprot',"ROA1_HUMAN");

so that the variable $seq_object is declared.

The first chapter in 'Learning Perl', or a similar introduction will get you
pretty far along the road to using bioperl.

Joel

On Tue, Jan 18, 2011 at 5:49 AM, Chris Fields <cjfields at illinois.edu> wrote:

> On Jan 18, 2011, at 2:10 AM, Adam Sjøgren wrote:
>
> > On Tue, 18 Jan 2011 13:32:47 +0800, Tao wrote:
> >
> >> In my opinion, there exist two major problems in your script:
> >
> >> First, have you noticed that you've written "use strict;" at the
> >> beginning line? Delete it, please! If you write down "use strict;",you
> >> should explicitly declare all the variables in your script, and this
> >> could be very confusing to new learners.
> >
> > I think this isn't the best advice. Everybody, and especially beginners,
> > should "use strict; use warnings;" and declare variables. Doing so makes
> > it much, much easier to catch typos and other small mistakes - which is
> > often what trips up beginners.
> >
> > The only exception I can think of is quick and dirty one-liners.
> >
> >
> >  Best regards,
> >
> >    Adam
>
> Completely agree.  In fact, many of the problems posted here can be
> resolved by 'use strict; use warnings;' (BTW, perl 5.14 will have 'use
> strict;' on by default).
>
> chris
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l
>




More information about the Bioperl-l mailing list