in reply to PDL rcols : Replacing missing values with 0

$PDL::undefval would potentially be useful; it allows you to specify what to use if an undef (or ragged i.e. non-existent) value is found when turning Perl arrays/values into an ndarray.