my %hash; $hash{$_} = [ glob("$_*.bam") ] for @lines;