my @masterArray = ( ["this", "that", 12563, "something", "else"], ["this", "that", 10, "something", "else"], ["this", "that", 1, "something", "else"], ["this", "that", 125638, "something", "else"], ["this", "that", 300000, "something", "else"], ); subDiscarder(\@masterArray); # # AND THEN @masterArray should become: # @masterArray = ( ["this", "that", 300000, "something", "else"], ["this", "that", 125638, "something", "else"], ["this", "that", 12563, "something", "else"], );