[Pdx-pm] hash from array question
Thomas J Keller
kellert at ohsu.edu
Fri May 25 14:23:29 PDT 2007
Bad day.
why can't I make a hash out of this list?
## code snippet ##
line 31 my $genomes = $config{"$project.genomes"};
line 32 print "genomes string: $genomes\n";
line 33 print "split gives: ", split(/,\s*/,$genomes),"\n";
line 34 my %genomes = split(/,\s*/,$genomes) ;
line 35 print map { "Key: $_ has value: $genomes{$_}\n" } sort keys %
$genomes;
##
Print statements:
genomes string: 'PSLT', 17233403, 'STM', 16763390
split gives: 'PSLT'17233403'STM'16763390
Can't use string ("'PSLT', 17233403, 'STM', 1676339") as a HASH ref
while "strict refs" in use at batch_blast.pls line 35.
More information about the Pdx-pm-list
mailing list