in reply to Re: Looper
in thread Looper

Why not ditch the intermediate and cut to the chase:
last if (@ref > 2);  # More than two elements
Update: Make that @ref instead of @b