$Hash{$ArtistSong1} = '1,3,5'; $Hash{$ArtistSong2} = '2,4'; #### my @songnumbers = split ',',$Hash{$ArtistSong1};