[Gmod-help] GMODTools genbank generation

Barry Dancis bdancis at digiconasp.com
Wed May 6 00:06:59 EDT 2009


Hi--

  I am trying to generate genbank files and I get the error:
  
  Can't use string ("33/64") as a HASH ref while "strict refs" in use at lib/Bio/GMOD/Bulkfiles/BulkWriter.pm line 96.

If I replace line 96:

  @ENV{@keys} = @{%$sconfig}{@keys};
  
with an expanded version:

  foreach my $next_key (@keys) {
		printf STDERR "(%s) %s\n", ($next_key, $sconfig->{$next_key});
		$ENV->{$next_key} = $sconfig->{$next_key};
	}

it works fine and prints out:

(species) Tst mito
(org) tmito
(date) 20090505
(title) Test Spm Data Release
(rel) tmito1
(relfull) tmito_20090505
(relid) 1
(release_url) /genome/Tst mito/release-tmito1.html

which look correct.

Any idea why   "@ENV{@keys} = @{%$sconfig}{@keys};" would  fail?

Thanks,

Barry




More information about the Gmod-help mailing list