my %notes; # notes is now a hash #... $notes{"$x;$y"}[0] = ... #### $notes{"$x;$y"}{...} = ...