http://www.perlmonks.org?node_id=650878


in reply to how to make first element of an string as a the array name

Why not make it a hash of array references, as in:

use strict; use warnings; use Data::Dumper; my $hash = { 'IL12::1::287' => [6,-17,-9,-21,-24,-15,-2,11,4,4,-15,-26, ...], 'IL12::1::329' => [-25,-18,-28,23,17,1,-3,-23], ... } print Dumper($hash);

You'll need to split each line and shift off the first element to get the hash key (ie. 'IL12::1::287').

I'm not sure which lines you're going to compare. Could you please explain this more?


Where do you want *them* to go today?