> I found some alternatives, though generally they feel uglier.
> Any ideas?
This has been discussed in the past, including the possibility to
return a value, but as of today you can't break out of a subroutine.
With this feature you could break out of a subroutine by turning it
into a function that returns VOID. We are not there yet.
varnish-misc mailing list