for (;;) { # Loop until "last". local $_ = ; ... last if not defined $_; }