Bio::Tools::CodonTable and Bio::Tools::IUPAC: use our and drop BEGIN blocks.
commitefe79ffd849837e638afa88179e232b2d0ebdaf5
authorDavid Miguel Susano Pinto <carandraug+dev@gmail.com>
Fri, 26 Apr 2024 12:33:32 +0000 (26 13:33 +0100)
committerDavid Miguel Susano Pinto <carandraug+dev@gmail.com>
Fri, 26 Apr 2024 12:33:32 +0000 (26 13:33 +0100)
treeed33998349ee74075ba468d753ed05c9dc321038
parenta73febe952c50b92f44a4693a7f13e12589c6b10
Bio::Tools::CodonTable and Bio::Tools::IUPAC: use our and drop BEGIN blocks.

In a73febe9 the CodonTable variables moved from a BGEIN to an INIT
block.  The IUPAC module also used a BEGIN block and uses CodonTable
which led to errors (failing tests in t/SeqTools/Backtranslate.t).
Replacing 'use vars' with 'our' and completely dropping the BEGIN/INIT
blocks, fixes the problem.
lib/Bio/Tools/CodonTable.pm
lib/Bio/Tools/IUPAC.pm