why not use a while loop like:
Why not a simple if statement
if( ! $true ){ ## skip after "last" ...; } [download]
In reply to Re^2: use of last by Anonymous Monk in thread use of last by morgon