%struct; #### push(@{$struct{$key}},"value") or // i passed the reference n added the values to the array add(\@{$struct{$key}});