[Pdx-pm] hash from array question

Andy Lester andy at petdance.com
Fri May 25 14:26:10 PDT 2007


On May 25, 2007, at 4:23 PM, Thomas J Keller wrote:

> 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.

You mean "sort keys %genomes", not "sort keys %$genomes".  It's  
trying to treat $genomes as a hashref and dereference it.

--
Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance






More information about the Pdx-pm-list mailing list