sub checkForm { my (..., $items2show_ref) = @_; @$items2show_ref = (); $$items2show_ref[ARRAYX] = []; # should this be () ?? ... push @??ARRAYX??, $value; ... }