substr( $str, -20 )= ''; #string, removes chars splice( @array, -20 )= (); #array, removes scalars