sub printRow{ my ($aref) = @_; print Dumper($aref); } ## call like this .. printRow(\@d_array); # using & is deprecated