editArray (\@array); ... sub editArray { my $arrayRef = shift; push @$arrayRef, 'new array element'; }