Over the weekend I wrote some perl. It was fun. I don't seem to do much of this - maybe I should do it more often.
Anyway, thanks to
goto I now have this nice, clear code structure where I make regular subroutine calls and returns (visualise this as up and down) and I use
goto to jump sideways between different subroutines at the same level. Fun. I'm curious if this technique could be useful for Befunge to Perl translators.
Of course, some people claim that
goto & isn't a real
goto, but I don't listen to them. Unfortunately the subroutine exits using
last didn't survive from the prototype into the CPAN version, but they were fun while they lasted.
All this nasty evil hackery was based on some very nice code by Ton Hospel.