[Bioperl-l] Problem in using BioPerl module through Strawberry Perl Professional 5.10.1.3 alpha 2
Chris Fields
cjfields at illinois.edu
Tue Jan 18 13:49:54 UTC 2011
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
More information about the Bioperl-l
mailing list