Hi, The docs for av_pop says that &PL_sv_undef is returned if the array is empty and since av_shift does the same I think the docs should state that too. Attached is a tiny doc patch for that. /Claes