If you want the last element of a split(), try this: ( split ... )[-1].
In reply to Re^4: why can't I shift a split? by Anonymous Monk in thread why can't I shift a split? by Anonymous Monk